



Also, once the device is connected and is set to accept connections, it will send unsolicited messages whenever a new connection or a new request is issued. It then responds back with the operation's outcome (assuming everything is running correctly). The module accepts commands via a simple serial interface. It can also be easily configured as a web server. The ESP8266 has a full TCP/UDP stack support. Once you are set up, you should learn more about the module's protocol here: Usageįirst, it is important to understand how the board works. In general, the tutorial below will get you started. A good example is how newer versions use 9600 baud rate, while older versions (by old I'm referring to 2-3 months old modules) used 57600-115200 baud rates. However, a word of caution - it is highly undocumented (primary reason for writing this document), and more importantly, it is frequently updated and not backward compatible. My ESP-01, connected via a USB/Serial buddy with a CH340 chip, does not exhibit this behavior.The ESP8266 is a low cost Serial-to-WiFi module that interfaces nicely to any microcontroller. It is sufficient to just connect-disconnect-connect quickly, and the board will reset. I did the same thing with Arduino IDE serial monitor and with Esplorer. This problem is not specific to the command line tool. Reliably, every time, if you do it in less than 2 seconds. Two commands in a rapid succession (for example 'esp file list' twice) cause the board to reset itself. I like the tool because I can do things like 'esp file push a' to push a file to it, and 'esp file list' to show the list of files on the flash.

I found this out by using the nodejs based esp8266-cli tool ( ). Both boards are flashed to the NodeMCU Lua firmware, latest.įor the NodeMCU DevKit board, if I initiate a serial port connection the NodeMCU board in rapid succession, no more than 2 seconds between the disconnect and the following connect, it forces the board to restart. One is the ESP-01, the other one is the NodeMCU devkit board that is marked 'LoLin' on the bottom. I am playing with the two '8266 boards that I have.
