chrysn / aiocoap

The Python CoAP library
Other
262 stars 119 forks source link

info:coap:Retransmission, Message ID #286

Closed Sharanabasavaexaleap closed 1 year ago

Sharanabasavaexaleap commented 1 year ago

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

chrysn commented 1 year ago

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 from[^1], 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.

[^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

chrysn commented 1 year ago

Please tell what resolved your issue.

Sharanabasavaexaleap commented 1 year ago

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")