Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
object_connectivity_stat.c File Reference
#include "liblwm2m.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for object_connectivity_stat.c:

Classes

struct  conn_s_data_t
 

Macros

#define RES_O_SMS_TX_COUNTER   0
 
#define RES_O_SMS_RX_COUNTER   1
 
#define RES_O_TX_DATA   2
 
#define RES_O_RX_DATA   3
 
#define RES_O_MAX_MESSAGE_SIZE   4
 
#define RES_O_AVERAGE_MESSAGE_SIZE   5
 
#define RES_M_START_OR_RESET   6
 
#define RES_M_STOP   7
 
#define RES_O_COLLECTION_PERIOD   8
 

Functions

void conn_s_updateTxStatistic (lwm2m_object_t *objectP, uint16_t txDataByte)
 
void conn_s_updateRxStatistic (lwm2m_object_t *objectP, uint16_t rxDataByte)
 
lwm2m_object_t * get_object_conn_s (void)
 
void free_object_conn_s (lwm2m_object_t *objectP)
 

Macro Definition Documentation

◆ RES_M_START_OR_RESET

#define RES_M_START_OR_RESET   6

◆ RES_M_STOP

#define RES_M_STOP   7

◆ RES_O_AVERAGE_MESSAGE_SIZE

#define RES_O_AVERAGE_MESSAGE_SIZE   5

◆ RES_O_COLLECTION_PERIOD

#define RES_O_COLLECTION_PERIOD   8

◆ RES_O_MAX_MESSAGE_SIZE

#define RES_O_MAX_MESSAGE_SIZE   4

◆ RES_O_RX_DATA

#define RES_O_RX_DATA   3

◆ RES_O_SMS_RX_COUNTER

#define RES_O_SMS_RX_COUNTER   1

◆ RES_O_SMS_TX_COUNTER

#define RES_O_SMS_TX_COUNTER   0

◆ RES_O_TX_DATA

#define RES_O_TX_DATA   2

Function Documentation

◆ conn_s_updateRxStatistic()

void conn_s_updateRxStatistic ( lwm2m_object_t *  objectP,
uint16_t  rxDataByte 
)

◆ conn_s_updateTxStatistic()

void conn_s_updateTxStatistic ( lwm2m_object_t *  objectP,
uint16_t  txDataByte 
)

◆ free_object_conn_s()

void free_object_conn_s ( lwm2m_object_t *  objectP)

◆ get_object_conn_s()

lwm2m_object_t* get_object_conn_s ( void  )