mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-27 17:17:09 +03:00
coap_event: Add COAP_EVENT_MSG_RETRANSMITTED
Apart from debug log messages, there is no way for a user to be notified when a message retransmission happens. This event can be useful for diagnosing issues related to lossy networks or unresponsive CoAP servers (e.g. user can track total retransmissions as an indicator for general link quality). Assigned event ID to 0x5002 to avoid creating a new 0x6000 event group, and because it's similar to COAP_EVENT_BAD_PACKET (0x5001).
This commit is contained in:
1 parent
f5251e682c
commit
312a0561e4
5 files changed
+10
-3
No files matched your search
@@ -94,10 +94,12 @@ typedef enum {
|
||||
COAP_EVENT_SERVER_SESSION_DEL = 0x4002,
|
||||
|
||||
/*
|
||||
* Received packet formatting errors
|
||||
* Message receive and transmit events
|
||||
*/
|
||||
/** Triggered when badly formatted packet received */
|
||||
COAP_EVENT_BAD_PACKET = 0x5001
|
||||
COAP_EVENT_BAD_PACKET = 0x5001,
|
||||
/** Triggered when a message is retransmitted */
|
||||
COAP_EVENT_MSG_RETRANSMITTED = 0x5002
|
||||
|
||||
} coap_event_t;
|
||||
|
||||
|
||||
Reference in new issue
Block a user