The ip and mac spark variables, below, works fine until I start UDP. The UDP works so no problem there. I can probably make a work around to start the UDP after I query the ip and mac addresses but thought I might point it out just in case someone has ran into it.
Yes, not sure what happened there… but the original code is ‘4’ and it works. I have compared both addresses, mac and ip, on my router and they are the same. Only when I include the Udp.begin is when it returns all zeroes otherwise my code does what I want it to do.
OK. It worked all of a sudden. I guess this is a timing thing?
I added a couple more variables to watch some UDP messages and tried the mac and ip address again with success.