pengfei wu
/
ESP8266Program
For test
Diff: ESP8266.h
- Revision:
- 17:c449356787f1
- Parent:
- 14:40b1decf03f3
- Child:
- 18:37254b357abd
--- a/ESP8266.h Wed Feb 04 02:47:28 2015 +0000 +++ b/ESP8266.h Wed Feb 04 03:06:54 2015 +0000 @@ -38,7 +38,7 @@ //Initialize port bool Initialize(uint8_t mode, String ssid, String pwd, uint8_t chl = ESP8266_DEFAULT_CHANNEL, uint8_t ecn = ESP8266_ECN_WAP_WAP2_PSK); - bool ipConfig(uint8_t type, String addr, int port, uint8_t a = 0, uint8_t id = 0); + bool ipConfig(uint8_t type, String addr, int port, uint8_t mux = 0, uint8_t id = 0); //send data in sigle connection mode bool Send(String str); @@ -52,7 +52,7 @@ void Reset(void); //set the working mode of module - bool confMode(uint8_t a); + bool confMode(uint8_t mode); //set the name and password of wifi bool confJAP(String ssid , String pwd); @@ -82,7 +82,7 @@ String showMux(void); //set the connection mode(sigle:0 or multiple:1) - bool confMux(int a); + bool confMux(int mux); //create new tcp or udp connection (sigle connection mode) bool newMux(uint8_t type, String addr, int port);