Testing
Fork of ESP8266Interface by
Diff: ESP8266/ESP8266.h
- Revision:
- 45:c180905b5b79
- Parent:
- 36:e1545c6c2cb3
- Parent:
- 44:3a7b6083210b
--- a/ESP8266/ESP8266.h Thu May 07 04:00:27 2015 +0000 +++ b/ESP8266/ESP8266.h Wed Jun 03 18:36:02 2015 +0000 @@ -93,9 +93,17 @@ /* * Legacy Start for UDP only connection in transparent mode * @param ip A string that contains the IP, no quotes + * @param id number between 0-4 * @param port Numerical port number to connect to + * @param length number of characters in the message being sent */ - bool startUDP(char* ip, int port); + bool startUDP(char* ip, int port, int id, int length); + + /* + *Starts the ESP chip as a TCP Server + *@param port Numerical port of the server, default is 333 + */ + bool startTCPServer(int port = 333); /** * Close a connection @@ -163,7 +171,7 @@ * Send a command to the wifi module. Check if the module is in command mode. If not enter in command mode * * @param str string to be sent - * @param ACK string which must be acknowledge by the wifi module. If ACK == NULL, no string has to be acknoledged. (default: "NO") + * @param ACK string which must be acknowledge by the wifi module. If ACK == NULL, no string has to be acknowledged. (default: "NO") * @param res this field will contain the response from the wifi module, result of a command sent. This field is available only if ACK = "NO" AND res != NULL (default: NULL) * * @return true if successful