[Solved] UDP broadcast occasionally resets system

There is an active discussion over in this thread about how doing broadcast or TX only UDP causes problems. Maybe we should talk about it over there so it is all in one place.

My experience is that you need to check the return values from UDP calls since Udp.write() will return -1 on failure. If you catch this, your code can restart the UDP endpoint since it is typically hosed at that point. Flashing cyan means that you lost the cloud connection and it retrying. I think this is because you have run out of sockets in the TI CC3000 WiFi chip (there are only seven total) but that has not been proven and there are other possibilities.

Checking return values will make your code more robust but it still fails and recovers with a long delay.