Closed tpitale closed 6 years ago
coap_client:request(get, "coap://somehost/api")
This never times out if the host is unreachable. I see that coap_transport has mention of ACK_TIMEOUT so I'm not sure why this won't error.
coap_transport
ACK_TIMEOUT
Any help/ideas would be much appreciated, thanks!
Hi. There appears to be no timeout in the coap_client. That is of course wrong.
Hello again. I just made fix. Default timeout is now 30s and it can be modified by a new coap_client:request parameter.
Thank you!
coap_client:request(get, "coap://somehost/api")
This never times out if the host is unreachable. I see that
coap_transport
has mention ofACK_TIMEOUT
so I'm not sure why this won't error.Any help/ideas would be much appreciated, thanks!