If I flash this code with:
Udp.beginPacket(“192.168.3.255”,3000); (broadcast address)
The code flashes, over several seconds, I get breathing Cyan (but no UDP broadcast packets), followed by breathing Green, followed breathing Cyan and immediate UDP packets.
If I flash this code with:
Udp.beginPacket(“192.168.2.7”,3000); (unicast address)
The code flashes, over several seconds, I get breathing Cyan (but no UDP broadcast packets), followed by breathing Green, followed breathing Cyan but no UDP packets.
Actually I found by problem between broadcast and unicast relating to an ARP issue between two linked wifi access points.
Maybe the breathing cyan -> breathing green -> breathing cyan [after an otherwise normal flash] is normal. It just caused a delay in the startup of the function.
If your code turns the Particle cloud off explicitly, then you get breathing green, meaning connected to the Internet but not the cloud. I am not sure why you are seeing that if you are not turning off the cloud.
Normally a quoted string IP address like you have does not work. You either need a hostname like “www.google.com” that DNS can resolve, or an IP address object or an uint8_t array. DNS cannot resolve addresses like “192.x.x.x”.