Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 2 months ago.
EthernetIf: Sending UDP Packets, what am I doing wrong?
I am attempting to send UDP packets using EthernetIf. I am using udp.sendto(packet, strlen(packet), &host);
The Configuration I'm using beforehand is:
IpAddr(169, 254, 184, 28), IP Address
IpAddr(255, 255, 0, 0), Subnet mask
IpAddr(169, 254, 9, 44), Gateway
IpAddr(169, 254, 9, 44) DNS
ethErr = eth.setup();
Host me(IpAddr(), 7777);
Host host(IpAddr(169,254,184,27), 7777, "dummy");
I have used wireshark to see the exact packets being send, and I see an ARP request for the MAC address of "169.254.184.27" and then a response from my PC, but then the packet is never actually sent. Does anyone know why this might be?
Thanks very much.