ekstrand / ESP8266wifi

ESP8266 Arduino library with built in reconnect functionality

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issues Using this library with Arduino Mega, compatibility?

takumikm opened this issue · comments

I've been having troubles using an Arduino Mega and several types of ESP8266 such as ESP-01, ESP-03 and ESP-12.
I'll list the problems I had:

    1. The echo function doesn't work, I can't see in the serial monitor "Serial" what is sent or received on swSerial.
  1. The HW reset function resets all the time (each 3 seconds) the ESP8266
  2. The connectToServer function is trying to connect over and over again even when it returns ALREADY CONNECTED, we actually changed the .cpp file so it matches: const char ALREADY[] PROGMEM = "ALREADY CONNECTED" but it still try to reconnect

Is it because I'm using an arduino mega which is not ATMEGA328 based or what could it be?
I'd appreciate some help!