Hi,
The board is an Arduino MEGA 2560.
I writing a program to control a garden watering system and part of this will rely on communication over WiFi.
I have connected an ESP8266 and although I had a few initial problems, fixed via firmware updates, I am now having code issues.
Initially I wrote, thanks for help from the net, a small program that will allow me to connect to my local WiFi. With this working, I sought to embed the code into the main program.
The problem is that I get different responses from the ESP8266 between the two programs.
I am not sure if the issue is with my code, the ESP8266, or the way I am using the serial connection.
Have attached the main code file from both programs:
Serial Output from WifiTest program:
Resetting module
AT+RST
OK
WIFI DISCONNECT
ets Jan 8 2013,rst cause:2, boot mode:(3,7)
load 0x40100000, len 27728, room 16
tail 0
chksum 0x2a
load 0x3ffe8000, len 2124, room 8
tail 4
chksum 0x07
load 0x3ffe8850, len 9276, room 4
tail 8
chksum 0xba
csum 0xba
Œãr“lŒlŒìl`Œâr“lìlŒl`Œâs’lŽŸ
ready
Serial output for AutoWater program:
Resetting WIFI module
AT+RST
OK
WIFI DISCONNECT
ets Jan 8 2013,rst cause:2,
Wifi module has no response.
WifiTest.ino (2.29 KB)
AutoWater.ino (11.4 KB)