This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

UDP connection sample for RL-ARM

Is there any UDP_connection_with_PC sample for RL-ARM and LPC1768 ?

If I use \Keil\ARM\Boards\Keil\MCB1700\RL\TCPnet\LEDClient\ as base for my test, then I can read UDP message from PC at udp_callback, but I can't read anything on PC from udp_send function call

  • The right answer is:
    - udp_send (socket_udp, Rem_IP, 1001, sendbuf, SENDLEN);
    + udp_send (socket_udp, Rem_IP, Rem_PORT, sendbuf, SENDLEN);

    where Rem_PORT is taken from rport at

    U16 udp_callback (U8 soc, U8 *rip, U16 rport, U8 *buf, U16 len)