Merge pull request #7447 from bergzand/netopt/tx-retries
netopt: Add option for retrieving number of retransmissions
This commit is contained in:
commit
b5984d2855
@ -340,6 +340,15 @@ typedef enum {
|
||||
*/
|
||||
NETOPT_IQ_INVERT,
|
||||
|
||||
/**
|
||||
* @brief Get retry amount from missing ACKs of the last transmission
|
||||
*
|
||||
* This retrieves the number of retries needed for the last transmissions.
|
||||
* Only retransmissions due to missing ACK packets are considered.
|
||||
* Retries due to CCA failures are not counted.
|
||||
*/
|
||||
NETOPT_TX_RETRIES_NEEDED,
|
||||
|
||||
/* add more options if needed */
|
||||
|
||||
/**
|
||||
|
||||
@ -74,6 +74,7 @@ static const char *_netopt_strmap[] = {
|
||||
[NETOPT_CHANNEL_HOP_PERIOD] = "NETOPT_CHANNEL_HOP_PERIOD",
|
||||
[NETOPT_FIXED_HEADER] = "NETOPT_FIXED_HEADER",
|
||||
[NETOPT_IQ_INVERT] = "NETOPT_IQ_INVERT",
|
||||
[NETOPT_TX_RETRIES_NEEDED] = "NETOPT_TX_RETRIES_NEEDED",
|
||||
[NETOPT_NUMOF] = "NETOPT_NUMOF",
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user