- Code: Select all
UDPSocket sock;
Endpoint client;
int rc = sock.bind(SSDP_PORT);
if(rc == 0)
{
//pc.printf("Waiting for SSDP M-SEARCH\r\n");
int n = sock.receiveFrom(client, search, sizeof(search));
pc.printf("Packet count = %i\r", cnt++);
sock.close();
return;
}
else
{
pc.printf("Error '%i' binding to SSDP port\r\n");
}
sock.close();
I believe that it is probably some mistake on my part in how I am dealing with the CC3000 chip but I have been unable to find anything in the documentation.
Thanks in advance for help on this!