Re: OTA Serial Monitor password?
Posted: Fri Sep 25, 2015 12:05 am
Hello Anand Lobo ,
Can you provide the sketch.It will be highly appreciated.
Can you provide the sketch.It will be highly appreciated.
-->
Open Community Forum for ESP8266, Come share Arduino and IoT (Internet of Things)
https://www.esp8266.com/
trendchaster wrote:Hello Anand Lobo,
Can you provide the sketch.It will be highly appreciated.
zeroK wrote:When you create a telnetServer you can use the printDebug as shown belowCode: 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);
}
}
Arduino: 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