monoZ docs
MZ_Addon_board_CO2.h File Reference
#include "MZ_error_handler.h"

Go to the source code of this file.

Functions

struct __attribute__ ((packed))
 
mz_error_t co2_app_init (void)
 CO2 Application initialization API. More...
 
void lwm2m_event_process (void *event)
 LWM2M user defined callback function. More...
 

Variables

 st_co2_cmd
 
 st_co2_cmd_resp23
 
 st_co2_cmd_resp21
 

Detailed Description

Date
Aug 18, 2021
Author
SKM

Definition in file MZ_Addon_board_CO2.h.

Function Documentation

◆ __attribute__()

struct __attribute__ ( (packed)  )

Definition at line 1 of file MZ_Addon_board_CO2.h.

◆ co2_app_init()

mz_error_t co2_app_init ( void  )

CO2 Application initialization API.

START

  1. It call all necessary initializations before application start
  2. It create the main co2 application
  3. It set all variables to its initialization states
    Returns
    MZ_OK/MZ_FAIL

Definition at line 564 of file MZ_Addon_board_CO2.c.

◆ lwm2m_event_process()

void lwm2m_event_process ( void *  event)

LWM2M user defined callback function.

Process LWM2M Event.

  • START This Function will be called from MZ_callback.c mz_pro_default_callback(). User need to check the events interested based on specific application requirement. If no application requirement exist for specific event, then no action need to be taken by this function
    Note
    MonoZ_Lib will call the mz_pro_default_callback() API after processing all LWM2M server events. So the events received at this API are just to inform user application to perform any post processing tasks. MonoZ_Lib maintain server connection and Obj19 related data. The detailed event list refer MZ_Lwm2m_public.h
    Parameters
    eventvoid

Definition at line 623 of file MZ_Addon_board_CO2.c.

Variable Documentation

◆ st_co2_cmd

Definition at line 26 of file MZ_Addon_board_CO2.h.

◆ st_co2_cmd_resp23

Definition at line 47 of file MZ_Addon_board_CO2.h.

◆ st_co2_cmd_resp21

Definition at line 66 of file MZ_Addon_board_CO2.h.