-->
Page 2 of 3

Re: OTA Serial Monitor password?

PostPosted: Fri Sep 25, 2015 12:05 am
by trendchaster
Hello Anand Lobo ,
Can you provide the sketch.It will be highly appreciated.

Re: OTA Serial Monitor password?

PostPosted: Sat Sep 26, 2015 12:44 am
by Anand Lobo
trendchaster wrote:Hello Anand Lobo,
Can you provide the sketch.It will be highly appreciated.


Hi trendchaster, I used the basic sketch from the ESP8266 examples. Only changes were to connect to my specific network.
See: Examples -> ESP8266mDNS -> DNS_SD_Arduino_OTA. I uploaded the sketch once using my USB/Serial device, then made changes to the Serial output, and then recompiled and ran the OTA uploader. I knew it worked because the Serial output changed to the new one.
Rather than using the Arduino IDE to program the ESP8266, I only use the IDE to compile. I copied the esptool and espota.py uploader utilities into a separate folder and use the commandline to run them.

Re: OTA Serial Monitor password?

PostPosted: Sun Dec 06, 2015 4:40 am
by Rudolf
zeroK wrote:When you create a telnetServer you can use the printDebug as shown below

Code: Select allconst uint16_t aport = 8266;
WiFiServer TelnetServer(aport);
WiFiClient Telnet;


void printDebug(const char* c){
//Prints to telnet if connected
  Serial.println(c);
 
  if (Telnet && Telnet.connected()){
    Telnet.println(c);
  }
}

Hello zeroK,
I am trying your example code. Unfortunately I got while compiling:
Code: Select allArduino: 1.6.6 (Mac OS X), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Serial, 115200, 4M (1M SPIFFS)"
       if (Telnet && Telnet.connected()) {
           ^
exit status 1
'Telnet' was not declared in this scope

What library you are including, to make it work?

Regards, Rudolf

Re: OTA Serial Monitor password?

PostPosted: Sun Dec 06, 2015 8:53 am
by martinayotte
From the above code, the include should simply be "ESP8266WiFi.h"