The title says it all really – i’m trying to send a UDP string from an arduino with an ethernet shield.
My code for the string is:
if (livingrm < 200)
Serial.println(“Light too dark”);
//check this as I have made it up on a stoned roll
I’m just not getting anything at the moment. No lights, and no prompt on the wifilink.
Has anybody got this working successfully?
Thanks in advance! Glad I found this forum!
Try using a number other than 000. I thought I read somewhere that 000 doesn’t work – at least not for the initial packet. I believe the only purpose of this number is to give you some reference that the packet has been received – the Wi-Fi link will broadcast back with an OK and the same number.
In all the code I have written, I’ve used a random number and it seems to work fine.
Since the packet is a broadcast, you should be able to see it on all other devices connected to the network. Have you tried running Wireshark on a computer to check that the packets are being sent to the network?
You must be logged in to reply to this topic.