Hello,
I am implementing logic to send messages using the lwIP TCP/IP stack, and I have encountered an issue.
Here is my current situation:
The attached test.c source file is based on the S32K344 TCP/IP 1.0.3 sample code, with the addition of the send_udp_data function.
Could you please review my UDP transmission code and let me know if I have implemented anything incorrectly?
Solved! Go to Solution.
Hello @malove ,
Based on warnings, udp_sendto (and udp_receive_callback) requires type ip_addr. I use TCPIP_STACK for S32K3XX version 1.0.4 .
Best regards,
Pavel
Thank you always @PavelL
I compared the codes and it seems like all ip4_addr have been changed to ip_addr.
Can I ask why?
Hello @malove ,
Based on warnings, udp_sendto (and udp_receive_callback) requires type ip_addr. I use TCPIP_STACK for S32K3XX version 1.0.4 .
Best regards,
Pavel
Thank you!
Hello @malove ,
I fixed warnings in your code. The code works without any issue on my S32K344EVB-T172. Wireshark sees the UDP messages. The code is attached - please check it out.
Best regards,
Pavel