debugSerial enables wifi debug and local echo to Serial (could be hw or sw).SerialESP8266wifi(Stream serialIn, Stream serialOut, byte resetPin, Stream debugSerial) Example: SerialESP8266wifi wifi(swSerial, swSerial, 10). ![]() It is assumed that a the CH_PD pin is connected the this pin. resetPin this pin will be pulled low then high to reset the ESP8266.serialOut this object is used to write to the ESP8266, you can use either hardware or software serial.serialIn this object is used to read from the ESP8266, you can use either hardware or software serial.SerialESP8266wifi(Stream serialIn, Stream serialOut, byte resetPin) To set up a simple server for testing, I like to use SocketTest.Unzip and place in ARDUINO_HOME/libraries/ directory as SerialESP8266wifi.Tested on an Arduino Nano v3 ATMega 328, Arduino IDE 1.60, ESP8266 module with firmware version 0.9.2.4.Contact me if you have ideas for changes or new features, found a bug or just want to buy a beer at jonasinspirativse.An AT command reference can be found here:.I got mine for about 2.50 US including shipping at Aliexpress. The ESP8266 is a dirtcheap wifimodule.A simple ESP8266 Arduino library with built in re-connect functionality.
0 Comments
Leave a Reply. |