- Tue Apr 25, 2017 9:39 pm
#194534
I've Googled my fingers off, but I can't find what I need. I would like some generic and configurable libraries for the ESP8266 module used in the default AT-command mode.
All I find are things pertaining to using the ESP8266 as a stand-alone processor and how to program it.
I have a library from Sparkfun (SparkfunESP8266WiFi.h) and it works so long as you don't stray from the basic examples. It is really made for the shield and while I have that, I can't use it that way.
I had to move up to a Mega2560 from a UNO. It worked well on the UNO, but the pins used for software serial on the UNO won't work that way on the Mega. I breadboarded it and connected the TX/RX to pins 10 and 11 on the Mega which will function as a soft serial port, but the ESP8266 library doesn't seem to have a way to change where it is expecting to find them.
I edited the .h file and changed the pin numbers and that works, but I don't want to keep needing to edit the library if I use the shield on a UNO again.
I tried making a copy and renaming it, but that didn't work at all.
What I would really like is a library for the ESP8266 that allows the input to be configured. Allowing a hardware serial (i.e. Serial1) would be a bonus. It would make it compatible with any version of Arduino board.
In lieu of that, I'd settle for any tips on how to modify the library I have to do that.
All I find are things pertaining to using the ESP8266 as a stand-alone processor and how to program it.
I have a library from Sparkfun (SparkfunESP8266WiFi.h) and it works so long as you don't stray from the basic examples. It is really made for the shield and while I have that, I can't use it that way.
I had to move up to a Mega2560 from a UNO. It worked well on the UNO, but the pins used for software serial on the UNO won't work that way on the Mega. I breadboarded it and connected the TX/RX to pins 10 and 11 on the Mega which will function as a soft serial port, but the ESP8266 library doesn't seem to have a way to change where it is expecting to find them.
I edited the .h file and changed the pin numbers and that works, but I don't want to keep needing to edit the library if I use the shield on a UNO again.
I tried making a copy and renaming it, but that didn't work at all.
What I would really like is a library for the ESP8266 that allows the input to be configured. Allowing a hardware serial (i.e. Serial1) would be a bonus. It would make it compatible with any version of Arduino board.
In lieu of that, I'd settle for any tips on how to modify the library I have to do that.