Go Down

Topic: [ESP8266] Alternative to serial monitor: Wifi Manager + ArduinoOTA + Telnet (Read 195 times) previous topic - next topic


Arduino IDE serial monitor does not work when sketch is uploaded wirelessly,
maybe this helps a bit, this code is the junction of 3 sample codes:
ArduinoOTA (BasicOTA), WiFiManager (AutoConnectWithFeedback), and ESP8266WiFi (WiFiTelnetToSerial),

Some functions have been added for testing ,
how to switch the LED and reset of the ESP8266,

Tested with NodeMCU V3 Lolin, the LED is on pin number 2, low state makes the LED (blue) light up.

The "DEBUG" setting activates or deactivates the password ("admin") to upload the sketch, the password for Telnet is "PassWd0".

After Telnet logging in, the "led" command toggles the status of the LED, and "reset" will restart ESP8266, as a result, the Telnet connection will be terminated.

You need to use a terminal that connects as a TCP client, to perform the Telnet connection, the program PuTTY.exe and the Hercules SETUP utility worked well.

To make Debug, the Hercules SETUP utility is very useful as it can display the characters in Hexadecimal mode.

<<< ArduinoOTA: You must have Python 2.7 installed >>>
See here: ESP8266 OTA Updates with Arduino IDE | Over the Air

First upload is done by serial port, then it is done over the wireless network

- Use the computer and connect to the new Wi-Fi access point, Similar to ESP1475633,
- Enter the ip address in the browser,
- Select your router and enter the password,
- The connection to the ESP8266 will be undone,
- Connect the computer back to your wifi network
- You may need to close and reopen the Arduino IDE

Sketch uses 342281 bytes (32%) of program storage space. Maximum is 1044464 bytes.
Global variables use 36492 bytes (44%) of dynamic memory, leaving 45428 bytes for local variables. Maximum is 81920 bytes.

Go Up