nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ modem_info_get_connectivity_stats()

int modem_info_get_connectivity_stats ( int *  tx_kbytes,
int *  rx_kbytes 
)

#include <include/modem/modem_info.h>

Obtain the connectivity statistics.

Get the total amount of data transmitted and receievd during the collection period.

Note
Will return bytes = 0 until connectivity statistics collection has been enabled using ATXCONNSTAT=1, or with modem_info_connectivity_stats_init().
Parameters
tx_kbytesPointer to the target variable for the number of kilobytes transmitted.
rx_kbytesPointer to the target variable for the number of kilobytes received.
Returns
0 if the operation was successful. Otherwise, a (negative) error code is returned.