ESP8266 driver using the NodeMCU interface
Dependencies: BufferedSerial
Dependents: esp8266_nodeMCU1 esp8266_2_thingspeak1 Solarator_0-0-2 IoTBurglar_and_Fire_AlarmSystem ... more
Fork of ESP8266Interface by
This is an alternative implementation of the ESP8266 driver that uses the NodeMCU firmware. The NodeMCU firmware provides a slightly larger feature set than the default firmware through a Lua interpreter.
Note
This library is currently in Alpha. It is not feature complete and has some bugs, proceed with caution. Fixes and patches are welcome!
Interface changes
- SSID and passphrase moved out of ESP8266Interface constructor and to ESP8266Interface::connect
- ESP8266Interface constructor provides optional timeout parameter to specify how long to wait for network operations
Note
NodeMCU defaults to a baud rate of 9600 instead of 115200 used by the default firmware.
Firmware
To install the NodeMCU firmware, follow the instructions on the Firmware Update wiki page using the nodemcu_integer_0.9.6-dev_20150406.bin binary at address 0x00000 instead of boot_v1.1.bin and user1.bin.
Since the NodeMCU firmware defaults to a baud rate of 9600, the Serial Passthrough program can be used to get direct access to the Lua interpreter running on the ESP8266.
Status
Working features:
- TCP Client
- UDP Client Transmit (Currently only UDP Server can recieve messages)
- Single Connection at a time
- Station Mode (Connects to AP)
- DNS Lookups
To be implemented:
- TCP Server
- UDP Server
- UDP Client recieve
- Multiple Connections tracked through Lua variables
- AP Mode (Act as access point)
- IPV6 support (Existing issue with NodeMCU)
Revisions of Socket/UDPSocket.cpp
| Revision | Date | Message | Actions |
|---|---|---|---|
| 31:fd0eaf273b11 | 2015-04-30 | safety commit | File Diff Annotate |
| 30:c035696b9397 | 2015-04-29 | Safety Save | File Diff Annotate |
| 27:9c6cefc12f0c | 2015-04-20 | Blocking | File Diff Annotate |
| 23:de9221771e96 | 2014-12-08 | Added CWMODE command to join() | File Diff Annotate |
| 22:c4360e61486a | 2014-12-02 | Add state.cmdMode and some cleanup | File Diff Annotate |
| 21:690526f05fe6 | 2014-12-02 | Fix recieveFrom loop to have 2 stage timeout in non-blocking case, return 0 bytes | File Diff Annotate |
| 19:fb8d5bff2076 | 2014-12-01 | sync | File Diff Annotate |
| 16:3f0efaa57a12 | 2014-12-01 | sync | File Diff Annotate |
| 13:41098c907200 | 2014-11-30 | First commit function templates for lightweight UDP client interface to ESP8266 | File Diff Annotate |
| 12:c5f0eac67a8a | 2014-10-08 | Debug | File Diff Annotate |
| 4:0bcec6272784 | 2012-12-20 | proper join after reboot - increase size flush | File Diff Annotate |
| 1:fb4494783863 | 2012-08-24 | first commit | File Diff Annotate |
ESP8266

Adafruit Huzzah