- Wed Oct 14, 2015 10:45 am
#185233
Hello,
I would appreciate some help on setting a simple UDP client using the Sparkfun Library
(SparkFun_ESP8266_AT_Arduino_Library)
Working with ESP8266_Shield_Demo.ino, I am trying tu figure out how to get the ESP8266Client UDP started as a UDP:
void clientDemo()
{
// To use the ESP8266 as a TCP client, use the
// ESP8266Client class. First, create an object:
ESP8266Client client;
I can manage to connect the ESP8266 to my UDP server and, having cut & pasted the
ESP8266_Serial_Passthrough code into the Shield_demo, I can Manually set the UDP connection using these:
AT+CIPSTART=4,"UDP","192.168.xxx.xxx",21,1112,0
AT+CIPSEND=4,50
''data out.........- for 50 bytes"
But I wonder if I can implement this with the library.
Best Regards
I would appreciate some help on setting a simple UDP client using the Sparkfun Library
(SparkFun_ESP8266_AT_Arduino_Library)
Working with ESP8266_Shield_Demo.ino, I am trying tu figure out how to get the ESP8266Client UDP started as a UDP:
void clientDemo()
{
// To use the ESP8266 as a TCP client, use the
// ESP8266Client class. First, create an object:
ESP8266Client client;
I can manage to connect the ESP8266 to my UDP server and, having cut & pasted the
ESP8266_Serial_Passthrough code into the Shield_demo, I can Manually set the UDP connection using these:
AT+CIPSTART=4,"UDP","192.168.xxx.xxx",21,1112,0
AT+CIPSEND=4,50
''data out.........- for 50 bytes"
But I wonder if I can implement this with the library.
Best Regards