I wrote codes for simple a gateway and a node. gateway send a message to node. but after 5 or 6 times send and receive, the node is hanging and not receive from gateway. I attach the codes below
sender: enter image description here
receiver: enter image description here
result is not permanent. gateway send 4 or 5 time to node but after that node can't receive anything.!!! I tried many changes in my code but at first lets discuss about this simple one. please help me. thanks.