|
monoZ docs
|
This is an example of how to use a lwm2m notify in timer based Application thread. More...
#include "MZ_sys_cmsis_os2.h"#include "MZ_lwm2m_example1.h"#include "MZ_timer.h"#include "MZ_print.h"#include "MZ_error_handler.h"#include "MZ_Lwm2m_public.h"#include "MZ_type_converter.h"#include "MZ_rtc.h"#include "stdio.h"Go to the source code of this file.
Macros | |
| #define | LW_START_AT_INIT (0) |
| Defines the AT Initialization More... | |
| #define | LW_START_AT_THREAD (1) |
| Defines the AT thread. More... | |
| #define | LWM2M_EXAMPLE LW_START_AT_THREAD |
| #define | LWM2M_APP_STACK_SIZE (128) |
| Defines the App stack size. More... | |
| #define | LWM2M_TX_TIME (pdMS_TO_TICKS(60000)) |
| Defines the Timer size in milliseconds. More... | |
Functions | |
| static void | lwm2m_timer_cb (TimerHandle_t xTimer) |
| timer callback function for lwm2m app More... | |
| static void | lwm2m_app (void *arg) |
| Create recursive timer create the timer and starts when main RTOS scheduler started and it will starts recursively for the defined duration. More... | |
| mz_error_t | lwm2m_app_init (void) |
| Initiate LWM2M App. More... | |
| void | lwm2m_event_process (void *event) |
| LWM2M user defined callback function. More... | |
Variables | |
| static char | sensor_data [11] = "" |
| static char | sensor_in [5] = "0000" |
| static int | copy_flag = 0 |
| static mz_thread_t | lwm2m_thread_id = NULL |
| static StaticTask_t | lwm2m_cb_mem |
| static StackType_t | lwm2m_stack [LWM2M_APP_STACK_SIZE] |
This is an example of how to use a lwm2m notify in timer based Application thread.
Definition in file MZ_lwm2m_example1.c.
| #define LW_START_AT_INIT (0) |
Defines the AT Initialization
Definition at line 41 of file MZ_lwm2m_example1.c.
| #define LW_START_AT_THREAD (1) |
Defines the AT thread.
Definition at line 42 of file MZ_lwm2m_example1.c.
| #define LWM2M_EXAMPLE LW_START_AT_THREAD |
Definition at line 51 of file MZ_lwm2m_example1.c.
| #define LWM2M_APP_STACK_SIZE (128) |
Defines the App stack size.
Definition at line 53 of file MZ_lwm2m_example1.c.
| #define LWM2M_TX_TIME (pdMS_TO_TICKS(60000)) |
Defines the Timer size in milliseconds.
Definition at line 54 of file MZ_lwm2m_example1.c.
|
static |
timer callback function for lwm2m app
| xTimer | TimerHandle_t |
Definition at line 71 of file MZ_lwm2m_example1.c.
|
static |
Create recursive timer create the timer and starts when main RTOS scheduler started and it will starts recursively for the defined duration.
| arg | void |
Definition at line 150 of file MZ_lwm2m_example1.c.
| mz_error_t lwm2m_app_init | ( | void | ) |
| void lwm2m_event_process | ( | void * | event | ) |
LWM2M user defined callback function.
Process LWM2M Event.
| event | void |
Definition at line 272 of file MZ_lwm2m_example1.c.
|
static |
Buffer to hold sensor data
Definition at line 56 of file MZ_lwm2m_example1.c.
|
static |
Input Buffer for sensor data
Definition at line 57 of file MZ_lwm2m_example1.c.
|
static |
Definition at line 59 of file MZ_lwm2m_example1.c.
|
static |
Definition at line 139 of file MZ_lwm2m_example1.c.
|
static |
Definition at line 140 of file MZ_lwm2m_example1.c.
|
static |
Definition at line 141 of file MZ_lwm2m_example1.c.