-->
Page 1 of 1

Get destination ip of udp packet

PostPosted: Thu Jan 14, 2016 2:39 pm
by Solexious
Hello all,

I need to be able to distinguish between broadcast and direct udp packets for my library, I need to be able to accept or reject broadcast packets.

I'm currently porting across my artnet library from the connected launchpad running off the energia ide. I extended the UDP class to add UDP.destIP() to return the destination ip of the packet. Is there similar functionality in the ESP UDP library already?

Best,

Sol

Re: Get destination ip of udp packet

PostPosted: Thu Jan 14, 2016 2:50 pm
by WereCatf
See IPAddress WiFiUDP::destinationIP() in libraries/ESP8266Wifi/src/WifiUdp.[cpp/h]

Re: Get destination ip of udp packet

PostPosted: Thu Jan 14, 2016 2:56 pm
by Solexious
WereCatf wrote:See IPAddress WiFiUDP::destinationIP() in libraries/ESP8266Wifi/src/WifiUdp.[cpp/h]


Cheers, just managed to find it after posting, always the way.