Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Anybody used the UDPSocket for broadcast ?
char cfgRqstMsg[]="EPOWER SERVER CONFIG REQUEST"; //
Host brdHost(IP_ADDR_BROADCAST, 5555); //broadcast test msg
int nSent = cfgSocket.sendto(cfgRqstMsg,strlen(cfgRqstMsg),&brdHost);
this code always fails with the UDPSOCKET_MEM error
there doesnt appear to be way to get at the underlying socket and setting SOF_BROADCAST
cheers
dave