Zephyr API 3.6.99
|
Macros | |
#define | LWM2M_PATH(...) |
Generate LwM2M string paths using numeric components. | |
#define | LWM2M_OBJ(...) |
Initialize LwM2M object structure. | |
#define LWM2M_OBJ | ( | ... | ) |
#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".