chrysn/aiocoap

info:coap:Retransmission, Message ID

Closed this issue · 3 comments

Hi,
I am running server in one device(rx86) and client in another device(hifive unmatched) while communicating between client and server some time we got "info:coap:Retransmission, Message ID XXXX " and after some time it exit from running. SS show in below. can i know the exact reason for this or is this for slow network?
Retransmission

The answer is likely in the first line -- please give a full log (and copy it to text -- uploaded screenshots of a terminal have terrible accessibility).

As I have a hunch as to where this is coming from1, please also provide information about the server you're using. The hardware (hifive) is of little relevance here, what matters is what CoAP software is running there.

Footnotes

  1. "My application does not process the responses, even though I see them arrive in a network sniffer. Why is that?" from https://github.com/core-wg/wiki/wiki/CoAP-FAQ

I created context with the name context and protocol , i did not seen that line, now i removed those lines of code still now i did not the error message. i have to see next .

Before
protocol = await Context.create_client_context()
while True:
context = await Context.create_client_context()
await asyncio.sleep(1)
request = Message(code=PUT, payload=b'close_the_door', uri="coap://10.168.1.124/other/block")
response = await protocol.request(request).response

after:
protocol = await Context.create_client_context()
while True:
await asyncio.sleep(1)
request = Message(code=PUT, payload=b'close_the_door', uri="coap://10.168.1.124/other/block")