monoZ docs
MZ_callback.c
Go to the documentation of this file.
1/*
2 * MZ_callback.c
3 *
4 * Created on: Apr 2, 2021
5 * Author: MZ_click
6 * This is a tool generated file. Do not edit manually
7 * Just use it as a template to create user specific event check
8 */
9
10#include "MZ_error_handler.h"
11#include "MZ_tool_gen.h"
12
13#if(MZ_LWM2M_ENABLE == 1)
14#include "MZ_lwm2m_example1.h"
15#endif
16
17/* NOTE : This function can be modified, when the callback is needed,
18 the mz_default_callback can be implemented in the user file also.
19*/
20__attribute__((weak)) void mz_default_callback(void * evnt)
21{
22 mz_error_t e = *((mz_error_t *)evnt);
23
24 switch(e)
25 {
26 case MZ_FAIL:
27 /*printf(mz_error_to_str(e));*/
28 /* Do something */
29 ;
30 break;
31 default:
32 break;
33 }
34}
35
36/* NOTE : This function can be modified, when the callback is needed,
37 the mz_hw_default_callback can be implemented in the user file also.
38*/
39__attribute__((weak)) void mz_hw_default_callback(void * evnt)
40{
41 mz_error_t e = *((mz_error_t *)evnt);
42
43 switch(e)
44 {
45 case MZ_FAIL:
46 /*printf(mz_error_to_str(e));*/
47 /* Do something */
48 ;
49 break;
50 default:
51 break;
52 }
53}
54
55/* NOTE : This function can be modified, when the callback is needed,
56 the mz_mod_default_callback can be implemented in the user file also.
57*/
58__attribute__((weak)) void mz_mod_default_callback(void * evnt)
59{
60 mz_error_t e = *((mz_error_t *)evnt);
61
62 switch(e)
63 {
64 case MZ_FAIL:
65 /*printf(mz_error_to_str(e));*/
66 /* Do something */
67 ;
68 break;
69 default:
70 break;
71 }
72}
73
74/* NOTE : This function can be modified, when the callback is needed,
75 the mz_device_info_default_callback can be implemented in the user file also.
76*/
77__attribute__((weak)) void mz_device_info_default_callback(void * evnt)
78{
79 mz_error_t e = *((mz_error_t *)evnt);
80
81 switch(e)
82 {
83 case MZ_FAIL:
84 /*printf(mz_error_to_str(e));*/
85 /* Do something */
86 ;
87 break;
88 default:
89 break;
90 }
91}
92
93/* NOTE : This function can be modified, when the callback is needed,
94 the mz_pro_default_callback can be implemented in the user file also.
95*/
96__attribute__((weak)) void mz_pro_default_callback(void * evnt)
97{
98#if(MZ_LWM2M_ENABLE == 1)
100#endif
101#if(MZ_MQTT_ENABLE == 1)
102 mqtt_event_process(evnt);
103#endif
104}
void lwm2m_event_process(void *event)
LWM2M user defined callback function.
__attribute__((weak))
Definition: MZ_callback.c:20
monoZ Error Handler
mz_error_t
Enumeration of monoZ Error Flags.
@ MZ_FAIL
Monoz LWM2M example1.
This is a tool generated file. Do not edit manually.