Try read the serial data from the ESP and the mega from the 2 TX and TX pins connection.
Maybe is just a matter of serial speed that usually is 115200baud
Hi everyone,
As madis said before ESP8266 starts to communicate with Serial1.begin(115200). For me everything is perfectly fine with one exception, namely:
I tried to change:
executeCommand("AT+CWMODE=1", 2000); in Esp8266EasyIot.cpp library into AT+CWMODE=2 and AT+CWMODE=3.
First response is OK but than I get an ERROR.
Funny thing about this is that my router does see ESP module in both cases. It has its own ip adress, but I can't add Node in ESP8266 EasyIoT driver settings as timeout error appears.
Maybe there is an issue of unsufficient current using only Arduino, I will try to use lm2596 converter. The same thing happened when I tried to power SIM800l module without external PSU.
Little edit:
After connecting via USB to TTLand using AT commands there is no problem at all to connect to my router using AT+CWMODE=1. Using AT+GMR:
Hi, after some time I managed to try again with thermostat. I have done everything step by step from the beginning: updated ESP to correct version, wired everything up (for ESP using level converter), changed Serial1.begin to 115200 (only then ESP connects to AP), changed ip adress, ssid, password and port to 37602 in ESP8266EasyIoTConfig.h, installed an image of EasyIoT server using Win32DiskImager on my Raspberry, started server, opened IoT in a browser and still can't add node because of a timeout error... I have run out of ideas.
This is from my serial monitor:
nodeid:-1
hwReset
E_START
E_CWMODE
Send cmd:AT+CWMODE=1
It seems like it connects to AP but then sometimes gives an error connecting TCP. Maybe someone tell me what could possibly be wrong. Thank you very much in advance
Wojciechowski wrote: Hi, after some time I managed to try again with thermostat. I have done everything step by step from the beginning: updated ESP to correct version, wired everything up (for ESP using level converter), changed Serial1.begin to 115200 (only then ESP connects to AP), changed ip adress, ssid, password and port to 37602 in ESP8266EasyIoTConfig.h, installed an image of EasyIoT server using Win32DiskImager on my Raspberry, started server, opened IoT in a browser and still can't add node because of a timeout error... I have run out of ideas.
This is from my serial monitor:
nodeid:-1
hwReset
E_START
E_CWMODE
Send cmd:AT+CWMODE=1
It seems like it connects to AP but then sometimes gives an error connecting TCP. Maybe someone tell me what could possibly be wrong. Thank you very much in advance
Try to run EasyIoT server in terminal mode and check debug output in terminal window.