Hi Mark,
I have 1 socket setup for UDP server and client, is this okay to do, or am I better having 1 socket as a server and one as sending? My sequences is as follows:
Create 1 UDP socket and setup a listening routine.
Every 10 seconds:
1. Send a request to the device.
2. It then replies with a result.
Very occasionally the device I am talking to stops responding, even though the commands are sent. If I switch on/off my board it all works again. The way around this is I call "fnReleaseUDP_socket" , then re-initialise it again, and all goes well. But now after a good while I get a hardware fault. I thought it might be a memory issue but cant find anything.
So I am not sure if I have to create a socket for sending, and one for receiving? And if releasing and re-initialising the socket can cause an issue?
Best Regards
Neil