XDK API  3.6.0
Documentation
Macros | Functions | Variables
LWM2MObjectAlertNotification.c File Reference

This file provides the implementation of LWM2MObjectAlertNotification module. More...

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

Macros

#define ALERTNOTIFICATION_RESOURCES_INDEX(res)   LWM2M_RESOURCES_INDEX(LWM2MObjectAlertNotificationResources, res)
 
#define BCDS_MODULE_ID   XDK_COMMON_ID_LWM2MOBJECTALERTNOTIFICATION
 

Functions

static LWM2M_MUTEX_INSTANCE (Mutex)
 
void LWM2MObjectAlertNotification_Enable (void)
 Enable LWM2M object instance to start providing alerts. More...
 
void LWM2MObjectAlertNotification_Init (void)
 Initialize LWM2M object instance. Must be called before any other function call. More...
 
void LWM2MObjectAlertNotification_SetValue (const char *alert)
 Set alert. Copies provided string into the alert message. More...
 
static retcode_t LWM2MReadAlert (Lwm2mSerializer_T *serializer_ptr, Lwm2mParser_T *parser_ptr)
 
static retcode_t LWM2MResetAlertFunc (Lwm2mSerializer_T *serializer_ptr, Lwm2mParser_T *parser_ptr)
 

Variables

static char AlertMessage [128] = { 0 }
 
static Lwm2m_URI_Path_T AlertUriPath = { LWM2MOBJECTS_IX_ALERTNOTIFICATION_0, LWM2MOBJECTS_IX_ALERTNOTIFICATION_0, ALERTNOTIFICATION_RESOURCES_INDEX(alert) }
 
LWM2MAlertNotificationResource_T LWM2MObjectAlertNotificationResources
 LWM2M resource data for instance 0. More...
 
static volatile bool Started = false
 

Macro Definition Documentation

#define ALERTNOTIFICATION_RESOURCES_INDEX (   res)    LWM2M_RESOURCES_INDEX(LWM2MObjectAlertNotificationResources, res)
#define BCDS_MODULE_ID   XDK_COMMON_ID_LWM2MOBJECTALERTNOTIFICATION

Function Documentation

static LWM2M_MUTEX_INSTANCE ( Mutex  )
static
void LWM2MObjectAlertNotification_Enable ( void  )

Refer interface header for description

void LWM2MObjectAlertNotification_Init ( void  )

Refer interface header for description

void LWM2MObjectAlertNotification_SetValue ( const char *  alert)

Refer interface header for description

+ Here is the call graph for this function:

static retcode_t LWM2MReadAlert ( Lwm2mSerializer_T serializer_ptr,
Lwm2mParser_T parser_ptr 
)
static

+ Here is the call graph for this function:

static retcode_t LWM2MResetAlertFunc ( Lwm2mSerializer_T serializer_ptr,
Lwm2mParser_T parser_ptr 
)
static

+ Here is the call graph for this function:

Variable Documentation

char AlertMessage[128] = { 0 }
static
LWM2MAlertNotificationResource_T LWM2MObjectAlertNotificationResources
Initial value:
=
{
}
static retcode_t LWM2MResetAlertFunc(Lwm2mSerializer_T *serializer_ptr, Lwm2mParser_T *parser_ptr)
Definition: LWM2MObjectAlertNotification.c:75
#define LWM2M_READ_ONLY
Definition: Serval_Lwm2m.h:218
#define LWM2M_DYNAMIC(dyn)
Definition: Serval_Lwm2m.h:105
#define LWM2M_FUNCTION(function)
Definition: Serval_Lwm2m.h:109
static retcode_t LWM2MReadAlert(Lwm2mSerializer_T *serializer_ptr, Lwm2mParser_T *parser_ptr)
Definition: LWM2MObjectAlertNotification.c:94
volatile bool Started = false
static

All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:40 by doxygen 1.8.8