contiki-os / contiki

The official git repository for Contiki, the open source OS for the Internet of Things
http://www.contiki-os.org/
Other
3.72k stars 2.58k forks source link

Unable to send message on same connection from two different processes in contiki #2631

Open subhanshus-optimus opened 4 years ago

subhanshus-optimus commented 4 years ago

I have created two processes in Contiki. In the first process, I have created a UDP connection and send a test message from the same and this message got successfully received at the other end. In the second process I just try send the same message, but it is not received on another end.

I have made it is static so that it can be used in both processes. static struct uip_udp_conn *conn

I guess this issue is occurring since contents of connection are destroyed in second process. How I can resolve this issue?