Serial.print() is there in the code of the arduino because it is connected to the serial monitor. Esp8266 is not connected directly to the serial monitor so why should i put Serial.print() in the esp8266 code?
santam:
Serial.print() is there in the code of the arduino because it is connected to the serial monitor. Esp8266 is not connected directly to the serial monitor so why should i put Serial.print() in the esp8266 code?
you have write(), not print(). write(5) will print a character with ascii code 5. it is a not visible control character. print(5) will print 5 as text.