monoZ docs
MZ_Lwm2m_public.h
Go to the documentation of this file.
8#ifndef MZ_LWM2M_PUBLIC_H_
9#define MZ_LWM2M_PUBLIC_H_
10#ifdef __cplusplus
11extern "C" {
12#endif
13#include "MZ_error_handler.h"
14
18typedef enum
19{
42
43
47typedef struct __attribute__((packed))
48{
49 en_lw_event lw_event;
50 int lw_ssc_id;
51 int lw_Obj_id;
52 int lw_Obj_Ins_id;
53 int lw_Res_id;
54 int lw_Res_Ins_id;
55 char lw_val[512];
56 int lw_MsgId;
58
64/* @defgroup READ_TOKEN Read Token
65 * Read the Token value
66 * @{
67 */
77
86/* @} */
87
88/*
89 * @defgroup SET_VALUE Set Value
90 * Set the Token value
91 * @{
92 */
100
108/* @} */
109
110/*
111 * @defgroup READ_VALUE Read Value
112 * Read resource value
113 * @{
114 */
123
132/* @} */
133
134/*
135 * @defgroup NOTIFY Notify
136 * Notify resource structure
137 * @{
138 */
148
157/* @} */
158
159/* @defgroup SET_AND_NOTIFY Set and Notify
160 * Set and Notify Resource structure
161 * @{
162 */
170
177/* @} */
179#ifdef __cplusplus
180}
181#endif
182#endif /* MZ_LWM2M_PUBLIC_H_ */
st_lw_event
struct __attribute__((packed))
en_lw_event
Enumeration of LW Events.
@ LW_EV_DEREG_FINISH
@ LW_EV_REG_FINISH
@ LW_EV_READ
@ LW_EV_WRITE_DATA
@ LW_EV_CLIENT_ONLINE
@ LW_EV_CLIENT_NOTIFY_SEND
@ LW_EV_BOOTSTRAP_COMPLETE
@ LW_EV_CLIENT_OFF
@ LW_EV_NOTIFY_NOT_SEND
@ LW_EV_OBSERVE_CANCEL
@ LW_EV_ENABLE_ALL
@ LW_EV_EXECUTE
@ LW_EV_CLIENT_ON
@ LW_EV_CLIENT_OFFLINE
@ LW_EV_WRITE_ATTRIBUTE
@ LW_EV_REG_UPDATE_FINISH
@ LW_EV_CLIENT_WKP_SMS
@ LW_EV_DISCOVER
@ LW_EV_CLIENT_NOTIFY_SEND_ACK
@ LW_EV_NOTIFY_FAIL
@ LW_EV_OBSERVE
monoZ Error Handler
mz_error_t
Enumeration of monoZ Error Flags.
mz_error_t mz_set_value_Ob19_0_0(char *src)
This function writes 19/0/0 value to internal resource structure.
mz_error_t mz_set_value_Ob19_1_0(char *src)
This function writes 19/1/0 value to internal resource structure.
mz_error_t mz_notify_Ob19_0_0(void)
This function Notifies internal resource structure value of 19/0/0 to LwM2M server.
void * mz_read_token_Ob19_0_0(mz_error_t *ret)
This function reads te token value of 19/0/0.
mz_error_t mz_set_and_notify_Ob19_1_0(char *src)
This function writes 19/1/0 value to internal resource structure and then notify to server.
mz_error_t mz_set_and_notify_Ob19_0_0(char *src)
This function writes 19/0/0 value to internal resource structure and then notify to server.
void * mz_read_token_Ob19_1_0(mz_error_t *ret)
This function reads te token value of 19/1/0.
void * mz_read_value_Ob19_1_0(mz_error_t *ret)
This function Reads internal resource structure value of 19/1/0.
void * mz_read_value_Ob19_0_0(mz_error_t *ret)
This function Reads internal resource structure value of 19/0/0.
mz_error_t mz_notify_Ob19_1_0(void)
This function Notifies internal resource structure value of 19/1/0 to LwM2M server.