Wireless ESP32
Connects DUELink Modules Wirelessly
- Overview
- Commands
- On-Module Code
This module adds Bluetooth and WiFi wireless connectivity option. It can be used to program and command modules over a wireless connection! The other option is to use this module within a Daisylink, to provide a wireless access to the supported hardware and other connected modules. See the Wireless Interface page for details.
Key features • Bluetooth or WiFi Connectivity | Resources 📄 Schematics PID: 0x090007 |
Modules ship without cables to reduce waste. Some specialty boards include a USB cable; for the rest, see Cables to add cables to your order.
| Function | Description |
|---|---|
DVer() | Returns the driver version. |
Init() | Initializes and resets the ESP32. |
ATCmd([cmd]) | Sends the AT command cmd to the ESP. |
ATWaitResp(t) | Parses the AT command response with a timeout of t milliseconds. Returns 1: OK, 0: Error (or no response - timeout). The response is stored in b0. |
ReadLine(g,t) | Reads a line from g: direction — 1: from ESP, 0: from Downlink (used only in bridge projects). t: timeout. The response is stored in b0. |
EnterLder() | Enters ESP loader mode. |
WlWrite(d) | Writes data d to the ESP32. |
WlRead() | Returns data from the FIFO buffer. Returns -1 if no data is available. |
WlReadCnt() | Returns the number of bytes available in the FIFO buffer. |
StartWiFi(b1, b2, b3, a, b, t) | Starts WiFi with b1: SSID, b2: password, b3: mDNS (Multicast Domain Name System) host name, a: 0/1 enable/disable AT mode, b: 0/1 enable/disable bridge, t: timeout in milliseconds. |
StartBT(b1,a, b) | Starts Bluetooth with b1: Bluetooth name, a: 0/1 enable/disable AT mode, b: 0/1 enable/disable bridge. |
Samples​
Example code for using this module's commands in popular languages.
New here? See Get Started to connect a module and send your first command.
- Python
- MicroPython
- JavaScript
- .NET
- Arduino
- MicroBlocks
loading...
loading...
loading...
loading...
loading...
This sample project runs on a MicroBlocks-enabled device that is tethered to this module. Note that this tethered module needs to have the official DUELink firmware and its module driver. See MicroBlocks page to learn more.
Click the button below to open, edit, and run the project directly on MicroBlocks' website.
Peek under the hood
The script below is this module's driver — it teaches the hardware how to respond to the commands listed above. It ships pre-loaded from the factory; most users never need to open it.
loading...
Code that runs directly on this module's MCU. See On-Module Code for an overview.
- Script
This example runs using the default DUELink Internal Engine using its Scripting Language, and it expects the module's driver to be loaded first, see the Commands Tab.
loading...
Ordering Info
| Product | Part Number | Price |
|---|---|---|
| DUELink Wireless ESP32 | GDL-WLESP32-A | $19.95 |