The driver for the ESP32 WiFi module

The ESP32 WiFi driver for Mbed OS

The Mbed OS driver for the ESP32 WiFi module.

Firmware version

How to write mbed-os compatible firmware : https://github.com/d-kato/GR-Boards_ESP32_Serial_Bridge

Restrictions

  • Setting up an UDP server is not possible
  • The serial port does not have hardware flow control enabled. The AT command set does not either have a way to limit the download rate. Therefore, downloading anything larger than the serial port input buffer is unreliable. An application should be able to read fast enough to stay ahead of the network. This affects mostly the TCP protocol where data would be lost with no notification. On UDP, this would lead to only packet losses which the higher layer protocol should recover from.

Revision:
1:5d78eedef723
Parent:
0:92d12d355ba9
--- a/ESP32Stack.cpp	Fri Jun 29 06:17:38 2018 +0000
+++ b/ESP32Stack.cpp	Mon Jul 02 02:21:21 2018 +0000
@@ -19,9 +19,10 @@
 #include "ESP32Stack.h"
 
 // ESP32Stack implementation
-ESP32Stack::ESP32Stack(PinName en, PinName io0, PinName tx, PinName rx, bool debug, int baudrate)
+ESP32Stack::ESP32Stack(PinName en, PinName io0, PinName tx, PinName rx, bool debug,
+    PinName rts, PinName cts, int baudrate)
 {
-    _esp = ESP32::getESP32Inst(en, io0, tx, rx, debug, baudrate);
+    _esp = ESP32::getESP32Inst(en, io0, tx, rx, debug, rts, cts, baudrate);
     memset(_local_ports, 0, sizeof(_local_ports));
 }