Start and stop sending from the UDP socket

Hi

I have three threads:

  1. UDP thread client.

  2. TCP server thread

  3. Main thread.

I want to send a msg from the TCP client (C#) to the mbed (TCP server) to start and stop sending from the UDP thread (mbed).

For example: I send a strat msg from the TCP client and I recieved this msg from the server and the TCP server will send the start to the UDP thread but when I try to send again from the TCP client a stop msg. The UDP thread will not response.

Please advise

Thank you
Nada

Hi Nada,

Usually is fair to show what you achieved and then ask about a help…
I glued :slight_smile: my two examples to once with a small modification.
TCP_and_UDP_test

BR, Jan