Merge pull request #7447 from bergzand/netopt/tx-retries

netopt: Add option for retrieving number of retransmissions
This commit is contained in:
Joakim Nohlgård 2017-08-17 17:25:58 +02:00 committed by GitHub
commit b5984d2855
2 changed files with 10 additions and 0 deletions

View File

@ -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 */
/**

View File

@ -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",
};