Data Structures | Macros | Typedefs | Functions | Variables
LWM2MObjectBarometer.h File Reference

Interface header for LWM2MObjectBarometer file. More...

#include <Serval_Lwm2m.h>
+ Include dependency graph for LWM2MObjectBarometer.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  LWM2MObjectBarometer_Resource_S
 LWM2M resource data for barometer. More...
 

Macros

#define LWM2M_OBJECTID_IPSO_BAROMETER   3315
 LWM2M object id for barometer. More...
 

Typedefs

typedef struct
LWM2MObjectBarometer_Resource_S 
LWM2MObjectBarometer_Resource_T
 

Functions

void LWM2MObjectBarometer_Disable (void)
 Disable LWM2M object instance to stop providing sensor data. Sets unit to "" and all other values to 0. Function is thread safe, it schedules a job for serval. Execution may therefore be deferred. More...
 
void LWM2MObjectBarometer_Enable (float minRangeValue_hPa, float maxRangeValue_hPa)
 Enable the LWM2M object instance to start providing sensor data. Function is thread safe, it schedules a job for serval. Execution may therefore be deferred. More...
 
void LWM2MObjectBarometer_Init (void)
 Initialize LWM2M object instance. Must be called before any other function call. More...
 
void LWM2MObjectBarometer_SetValue (float sensorValue_hPa)
 the function set the current measured sensorValue in [hPa] More...
 

Variables

LWM2MObjectBarometer_Resource_T LWM2MObjectBarometerResources
 LWM2M resource data for instance 0. More...
 

Macro Definition Documentation

#define LWM2M_OBJECTID_IPSO_BAROMETER   3315

Typedef Documentation

Function Documentation

void LWM2MObjectBarometer_Disable ( void  )

Refer interface header for description

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void LWM2MObjectBarometer_Enable ( float  minRangeValue,
float  maxRangeValue 
)
Parameters
[in]minRangeValue_hPaminimum range of possible values in [hPa]
[in]maxRangeValue_hPamaximum range of possible values in [hPa]

Refer interface header for description

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void LWM2MObjectBarometer_Init ( void  )

Refer interface header for description

void LWM2MObjectBarometer_SetValue ( float  sensorValue_hPa)

Will triggers the sending of a notification, if the value was changed. Function is thread safe, it schedules a job for serval. Execution may therefore be deferred.

Parameters
[in]sensorValue_hPacurrent sensor value in [hPa]

Refer interface header for description

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

LWM2MObjectBarometer_Resource_T LWM2MObjectBarometerResources

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