Macros | Functions | Variables
LWM2MObjectConnectivityMonitoring.c File Reference

This file provides implementation for LWM2MObjectConnectivityMonitoring module. More...

#include "XdkCommonInfo.h"
#include "LWM2MObjects.h"
#include "LWM2M.h"
#include "LWM2MUtil.h"
#include <Serval_Exceptions.h>
+ Include dependency graph for LWM2MObjectConnectivityMonitoring.c:

Macros

#define BCDS_MODULE_ID   XDK_COMMON_ID_LWM2MOBJECTCONNECTIVITYMONITORING
 
#define CONN_MON_RESOURCES_INDEX(res)   LWM2M_RESOURCES_INDEX(LWM2MObjectConnectivityMonitoringResources, res)
 
#define IP_ADDRESSES_COUNT   1
 
#define NETWORK_BEARER_COUNT   1
 

Functions

static LWM2M_MUTEX_INSTANCE (Mutex)
 
static retcode_t LWM2MGetAvailableNetworkBearer (Lwm2mSerializer_T *serializer_ptr, Lwm2mParser_T *parser_ptr)
 This function is used to return the available network Bearer array. More...
 
static retcode_t LWM2MGetIpAddresses (Lwm2mSerializer_T *serializer_ptr, Lwm2mParser_T *parser_ptr)
 This function is used to update the return the current IP address. More...
 
void LWM2MObjectConnectivityMonitoring_Enable (void)
 Enable LWM2M object instance. Start reporting values. More...
 
void LWM2MObjectConnectivityMonitoring_Init (void)
 Initialize LWM2M object instance. Must be called before any other function call. More...
 
void LWM2MObjectConnectivityMonitoring_SetIpAddress (const char *ipAddr)
 Set ip address. More...
 
void LWM2MObjectConnectivityMonitoring_SetRadioSignalStrength (int rss)
 Set radio signal strength. More...
 

Variables

static char IpAddresses [IP_ADDRESSES_COUNT][16] = { "" }
 
LWM2MObjectConnectivityMonitoring_Resource_T LWM2MObjectConnectivityMonitoringResources
 
static int32_t NetworkBearer [NETWORK_BEARER_COUNT] = { 21 }
 
static volatile bool Started = false
 

Macro Definition Documentation

#define CONN_MON_RESOURCES_INDEX (   res)    LWM2M_RESOURCES_INDEX(LWM2MObjectConnectivityMonitoringResources, res)
#define IP_ADDRESSES_COUNT   1
#define NETWORK_BEARER_COUNT   1

Function Documentation

static LWM2M_MUTEX_INSTANCE ( Mutex  )
static
static retcode_t LWM2MGetAvailableNetworkBearer ( Lwm2mSerializer_T serializer_ptr,
Lwm2mParser_T parser_ptr 
)
static

+ Here is the call graph for this function:

static retcode_t LWM2MGetIpAddresses ( Lwm2mSerializer_T serializer_ptr,
Lwm2mParser_T parser_ptr 
)
static

+ Here is the call graph for this function:

void LWM2MObjectConnectivityMonitoring_Enable ( void  )

Refer interface header for description

void LWM2MObjectConnectivityMonitoring_Init ( void  )

Refer interface header for description

void LWM2MObjectConnectivityMonitoring_SetIpAddress ( const char *  ipAddr)

Refer interface header for description

+ Here is the call graph for this function:

void LWM2MObjectConnectivityMonitoring_SetRadioSignalStrength ( int  rss)

Refer interface header for description

+ Here is the call graph for this function:

Variable Documentation

char IpAddresses[IP_ADDRESSES_COUNT][16] = { "" }
static
LWM2MObjectConnectivityMonitoring_Resource_T LWM2MObjectConnectivityMonitoringResources
Initial value:
=
{
}
static retcode_t LWM2MGetAvailableNetworkBearer(Lwm2mSerializer_T *serializer_ptr, Lwm2mParser_T *parser_ptr)
This function is used to return the available network Bearer array.
Definition: LWM2MObjectConnectivityMonitoring.c:84
#define LWM2M_READ_ONLY
Definition: Serval_Lwm2m.h:218
static retcode_t LWM2MGetIpAddresses(Lwm2mSerializer_T *serializer_ptr, Lwm2mParser_T *parser_ptr)
This function is used to update the return the current IP address.
Definition: LWM2MObjectConnectivityMonitoring.c:109
#define LWM2M_INTEGER(integer)
Definition: Serval_Lwm2m.h:97
#define LWM2M_DYNAMIC_ARRAY(dyn)
Definition: Serval_Lwm2m.h:107
int32_t NetworkBearer[NETWORK_BEARER_COUNT] = { 21 }
static
volatile bool Started = false
static

This documentation file has been automatically generated on Fri Oct 4 2019 03:47:00 by doxygen 1.8.8