AT protocol library
OTHER License
This is an attempt to implement DCE and DTE sides of an AT protocol, mostly based on Recommendation V.250. The code has two parts: a platform-independent code for basic DCE/DTE functions, and target-specific commands that control WiFi, TCP/IP, etc. The main target for DCE is an ESP8266 chip, but it is easy to add other targets as well, or pull the platform-independent code into another project.
The AT commands supported by the ESP8266 target are described here.
What works so far:
Next up:
Many commands that return ERROR print error reason when debug output is enabled. To enable debug output, issue AT+IDBG=1 command.
If you don't want to go through the build process described below (though I advise you do), get the prebuilt binaries on my website.
XTENSA_TOOCHAIN
, XTENSA_LIBS
, SDK_BASE
, ESPTOOL
directories in target/esp8266/target.mkmake clean all TARGET=esp8266
There are some unit tests for target-independent code that run on PC. Doing make test
will build the tests and run them. Don't forget to make clean
before you make test
if you have built for ESP8266 before that, or the linker will complain about unsupported object file format.
BSD. See the LICENSE file.
I use Catch for unit tests (it's in include/catch.hpp), see header for it's own license.