Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: RE: Troubles with UDP send

$
0
0
Hello feng, The third argument you're passing is wrong. You shouldn't pass an IP instance struct but just the IP address in ULONG format (just like you defined SLAVE_IP_ADDRESS). Do not rely on the header definition as the _nxe function takes pointer to a pointer as an argument, and hence additional & is required in the #define. Try replacing NX_PACKET packet_ptr with this: static NX_PACKET packet; NX_PACKET * packet_ptr = &packet; And then pass packet_ptr into the function. EDIT: Also, I spotted you're mixing nx and nxd API calls. You shouldn't have both (NetX and NetX Duo) in the same project. Regards, Karol

Viewing all articles
Browse latest Browse all 59170

Trending Articles