
and then press Reset Button to restart the boards. Switch two RX0/TX0(in my case I use Serial.print() and Serial.readString() for communicate between Esp and Mega)Īfter you already upload sketch to both Modules you can test communication between them by configure DIP to: 1:on,2:on,3:on,4:on. Program to mega(upload sketch) in case you want to send communication to each other by configure Dip to 3:on,4:on, and other off. Programm to the ESP(upload sketch) for wifi connection by configure the DIP to 5:on,6:on,7:on and other off. Follow this if you have the same to my cases:

I hope you catch what I mean, and happy to provide more information if needed, Thank you again for sharing.Īfter I try many week, now it works. Question 3: Which board did you select when upload the sketch? "Generic ESP8266 Modules" or "Mega2560"? Question 2: Do we have to program to both of that, esp and mega?

Question 1: Do you think, Is it possible to start ESP from Mega via the Serial ports by AT Commands? I want to start esp from mega by the AT Command via the Serial ports, but I found esp seem doesn't works with AT Command. I just want to send the sensors data such Temperature or Humidity from Mega pins to the Firebase via built-in Esp8266 on board. that is the problem of esp? In my case for my project. But I found that I cannot use the AT Command to the esp even I already updated new firmware. when I try with Mega alone it works fine, and also alone with Esp works fine. I hope this thank you very much for your sharing, I also have the exactly the same of your board, and I have try many time with that board. Serial.println( wifi.getLocalIP().c_str())


Serial.println(wifi.getVersion().c_str()) The code originated from BISSA ORBOEA in Element14. this is just to test that Arduino and ESP8266 are working together. Run the below sketch, change the SSID and PASSWORD values. Set the dip switch to "special" mode: (1=on, 2=on, 3=on, 4=on, 5=off, 6=off, 7=off, 8=off) see the the description of the product.
