Uint32_t recv (uint8_t mux_id, uint8_t *buffer, uint32_t buffer_size, uint32_t timeout=1000) : Receive data from 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. String getLocalIP (void) : Get the IP address of ESP8266.īool enableMUX (void) : Enable IP MUX(multiple connection mode).īool disableMUX (void) : Disable IP MUX(single connection mode).īool createTCP (String addr, uint32_t port) : Create TCP connection in single mode.īool releaseTCP (void) : Release TCP connection in single mode.īool registerUDP (String addr, uint32_t port) : Register UDP port number in single mode.īool unregisterUDP (void) : Unregister UDP port number in single mode.īool createTCP (uint8_t mux_id, String addr, uint32_t port) : Create TCP connection in multiple mode.īool releaseTCP (uint8_t mux_id) : Release TCP connection in multiple mode.īool registerUDP (uint8_t mux_id, String addr, uint32_t port) : Register UDP port number in multiple mode.īool unregisterUDP (uint8_t mux_id) : Unregister UDP port number in multiple mode.īool setTCPServerTimeout (uint32_t timeout=180) : Set the timeout of TCP Server.īool startServer (uint32_t port=333) : Start Server(Only in multiple mode).īool stopServer (void) : Stop Server(Only in multiple mode).īool startTCPServer (uint32_t port=333) : Start TCP Server(Only in multiple mode).īool stopTCPServer (void) : Stop TCP Server(Only in multiple mode).īool send (const uint8_t *buffer, uint32_t len) : Send data based on TCP or UDP builded already in single mode.īool 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. String getIPStatus (void) : Get the current status of connection(UDP and TCP). String getJoinedDeviceIP (void) : Get the IP list of devices connected to SoftAP. String getAPList (void) : Search available AP list and return it.īool joinAP (String ssid, String pwd) : Join in AP.īool leaveAP (void) : Leave AP joined before.īool setSoftAPParam (String ssid, String pwd, uint8_t chl=7, uint8_t ecn=4) : Set SoftAP parameters. String getVersion (void) : Get the version of AT Command Set.īool setOprToStation (void) : Set operation mode to staion.īool setOprToSoftAP (void) : Set operation mode to softap.īool setOprToStationSoftAP (void) : Set operation mode to station + softap. Turn on as a TCP server: AT+CIPSERVER=1,8888, check the self server IP address: AT+CIFSR=?īool kick (void) : Verify ESP8266 whether live or not.īool restart (void) : Restart ESP8266 by "AT+RST". Mode 0 to close server mode, mode 1 to open port = port Send data: AT+CIPSEND=4,15 and then enter the dataĠ for single connection 1 for mutiple connection Id = 0-4, type = TCP/UDP, addr = IP address, port= portĬonnect to another TCP server, set multiple connection first: AT+CIPMUX=1 connect: AT+CIPSTART=4,"TCP","X1.X2.X3.X4",9999ġ)single connection(+CIPMUX=0) AT+CIPSEND= 2) multiple connection (+CIPMUX=1) AT+CIPSEND= , Ssid, pwd, chl = channel, ecn = encryptionĬonnect to your router: :AT+CWJAP="YOURSSID","helloworld" and check if connected: AT+CWJAP?ġ)single connection (+CIPMUX=0) AT+CIPSTART=, 2) multiple connection (+CIPMUX=1) AT+CIPSTART=, NOTE: T here are must be no any spaces between the " and IP address or port remember them? Below is a list of the standard commands but be aware that this may change with time. It uses the same type of commands that were used in MODEMs. The ESP8266 interface uses standard 'AT' (attention) commands. The WeeESP8266 Arduino API documentation is located here and the library files can be downloaded here from Github. The current ESP8266 library project is called 'WeeESP8266'.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |