Zephyr API Documentation
3.7.0
A Scalable Open Source RTOS
|
Macros | |
#define | LWM2M_PATH(...) |
Generate LwM2M string paths using numeric components. | |
#define | LWM2M_OBJ(...) GET_OBJ_MACRO(__VA_ARGS__, LWM2M_OBJ4, LWM2M_OBJ3, LWM2M_OBJ2, LWM2M_OBJ1)(__VA_ARGS__) |
Initialize LwM2M object structure. | |
#define LWM2M_OBJ | ( | ... | ) | GET_OBJ_MACRO(__VA_ARGS__, LWM2M_OBJ4, LWM2M_OBJ3, LWM2M_OBJ2, LWM2M_OBJ1)(__VA_ARGS__) |
#include <zephyr/net/lwm2m_path.h>
Initialize LwM2M object structure.
Accepts at least one and up to four arguments. Fill up lwm2m_obj_path structure and sets the level.
For example:
Can also be used in place of function argument to return the structure allocated from stack
#define LWM2M_PATH | ( | ... | ) |
#include <zephyr/net/lwm2m_path.h>
Generate LwM2M string paths using numeric components.
Accepts at least one and up to four arguments. Each argument will be stringified by the pre-processor, so calling this with non-literals will likely not do what you want.
For example:
would evaluate to "3/0/1", while
evaluates to "x/0/1".