Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AT v0.22 UDP support and TCP keep alive option #32

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
855 changes: 773 additions & 82 deletions ESP8266.cpp

Large diffs are not rendered by default.

376 changes: 318 additions & 58 deletions ESP8266.h

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -37,6 +37,8 @@ will be useful for Arduino lovers.
bool setOprToSoftAP (void) : Set operation mode to softap.

bool setOprToStationSoftAP (void) : Set operation mode to station + softap.

uint8_t getOprMode(void) : Get the operation mode.

String getAPList (void) : Search available AP list and return it.

@@ -85,6 +87,10 @@ will be useful for Arduino lovers.
bool send (const uint8_t *buffer, uint32_t len) : Send data based on TCP or UDP builded already in single mode.

bool send (uint8_t mux_id, const uint8_t *buffer, uint32_t len) : Send data based on one of TCP or UDP builded already in multiple mode.

bool sendFromFlash (const uint8_t *buffer, uint32_t len) : Send data based on TCP or UDP builded already in single mode.

bool sendFromFlash (uint8_t mux_id, const uint8_t *buffer, uint32_t len) : Send data based on one of TCP or UDP builded already in multiple mode.

uint32_t recv (uint8_t *buffer, uint32_t buffer_size, uint32_t timeout=1000) : Receive data from TCP or UDP builded already in single mode.

@@ -105,6 +111,18 @@ will be useful for Arduino lovers.
- [Iteaduino UNO](http://imall.iteadstudio.com/im130312001.html)
- [WBoard Pro](http://imall.iteadstudio.com/im141125005.html)

# Select the version of ESP8266 AT Firmware

At present, this library supports ESP8266 AT 0.18 version and 0.22 version. You
can select one of them to fit your module by modifing this line in `ESP8266.h`:

#define USER_SEL_VERSION VERSION_18

If you want to select 0.22 version, it should be like below after modification:

#define USER_SEL_VERSION VERSION_22


# Using SoftwareSerial

If you want to use SoftwareSerial to communicate with ESP8266, you need to modify
6 changes: 3 additions & 3 deletions doc/API-html/_connect_wi_fi_8ino-example.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions doc/API-html/_connect_wi_fi_8ino_source.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion doc/API-html/_e_s_p8266_8cpp.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading