/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_engine.h | 114 void lwm2m_engine_context_close(struct lwm2m_ctx *client_ctx); 121 void lwm2m_engine_context_init(struct lwm2m_ctx *client_ctx); 136 bool lwm2m_engine_bootstrap_override(struct lwm2m_ctx *client_ctx, struct lwm2m_obj_path *path); 290 int lwm2m_open_socket(struct lwm2m_ctx *client_ctx); 299 int lwm2m_close_socket(struct lwm2m_ctx *client_ctx); 308 int lwm2m_socket_suspend(struct lwm2m_ctx *client_ctx); 316 int lwm2m_socket_add(struct lwm2m_ctx *ctx); 323 void lwm2m_socket_del(struct lwm2m_ctx *ctx); 332 int lwm2m_socket_start(struct lwm2m_ctx *client_ctx); 340 int lwm2m_socket_close(struct lwm2m_ctx *client_ctx); [all …]
|
D | lwm2m_rd_client.h | 49 int lwm2m_rd_client_timeout(struct lwm2m_ctx *client_ctx); 50 bool lwm2m_rd_client_is_registred(struct lwm2m_ctx *client_ctx); 51 bool lwm2m_rd_client_is_suspended(struct lwm2m_ctx *client_ctx); 55 int lwm2m_rd_client_connection_resume(struct lwm2m_ctx *client_ctx); 77 void lwm2m_rd_client_set_ctx(struct lwm2m_ctx *ctx);
|
D | lwm2m_message_handling.h | 45 struct lwm2m_message *lwm2m_get_message(struct lwm2m_ctx *client_ctx); 52 void lwm2m_udp_receive(struct lwm2m_ctx *client_ctx, uint8_t *buf, uint16_t buf_len, 55 int generate_notify_message(struct lwm2m_ctx *ctx, struct observe_node *obs, void *user_data); 58 int lwm2m_send_empty_ack(struct lwm2m_ctx *client_ctx, uint16_t mid); 78 int lwm2m_parse_peerinfo(char *url, struct lwm2m_ctx *client_ctx, bool is_firmware_uri);
|
D | lwm2m_engine.c | 107 static struct lwm2m_ctx *sock_ctx[MAX_POLL_FD]; 116 struct lwm2m_ctx **lwm2m_sock_ctx(void) { return sock_ctx; } in lwm2m_sock_ctx() 124 static int lwm2m_socket_update(struct lwm2m_ctx *ctx); 135 int lwm2m_open_socket(struct lwm2m_ctx *client_ctx) in lwm2m_open_socket() 162 int lwm2m_close_socket(struct lwm2m_ctx *client_ctx) in lwm2m_close_socket() 185 int lwm2m_socket_suspend(struct lwm2m_ctx *client_ctx) in lwm2m_socket_suspend() 208 int lwm2m_engine_connection_resume(struct lwm2m_ctx *client_ctx) in lwm2m_engine_connection_resume() 233 int lwm2m_push_queued_buffers(struct lwm2m_ctx *client_ctx) in lwm2m_push_queued_buffers() 254 bool lwm2m_engine_bootstrap_override(struct lwm2m_ctx *client_ctx, struct lwm2m_obj_path *path) in lwm2m_engine_bootstrap_override() 365 static int64_t retransmit_request(struct lwm2m_ctx *client_ctx, const int64_t timestamp) in retransmit_request() [all …]
|
D | lwm2m_observation.h | 40 void remove_observer_from_list(struct lwm2m_ctx *ctx, sys_snode_t *prev_node, 48 int engine_remove_observer_by_token(struct lwm2m_ctx *ctx, const uint8_t *token, uint8_t tkl);
|
D | lwm2m_shell.c | 70 struct lwm2m_ctx *ctx = lwm2m_rd_client_ctx(); in cmd_send() 109 struct lwm2m_ctx *ctx = lwm2m_rd_client_ctx(); in cmd_exec() 152 struct lwm2m_ctx *ctx = lwm2m_rd_client_ctx(); in cmd_read() 303 struct lwm2m_ctx *ctx = lwm2m_rd_client_ctx(); in cmd_write() 450 struct lwm2m_ctx *ctx = lwm2m_rd_client_ctx(); in cmd_start() 492 struct lwm2m_ctx *ctx = lwm2m_rd_client_ctx(); in cmd_stop() 525 struct lwm2m_ctx *ctx = lwm2m_rd_client_ctx(); in cmd_update() 670 struct lwm2m_ctx *ctx; in cmd_observations()
|
D | lwm2m_observation.c | 69 struct lwm2m_ctx **lwm2m_sock_ctx(void); 361 struct lwm2m_ctx **sock_ctx = lwm2m_sock_ctx(); in lwm2m_notify_observer_path() 444 struct lwm2m_ctx *ctx, uint8_t tkl, uint16_t format, in engine_observe_node_init() 477 static void remove_observer_path_from_list(struct lwm2m_ctx *ctx, struct observe_node *obs, in remove_observer_path_from_list() 491 static void engine_observe_single_path_id_remove(struct lwm2m_ctx *ctx, struct observe_node *obs, in engine_observe_single_path_id_remove() 731 void remove_observer_from_list(struct lwm2m_ctx *ctx, sys_snode_t *prev_node, in remove_observer_from_list() 743 int engine_remove_observer_by_token(struct lwm2m_ctx *ctx, const uint8_t *token, uint8_t tkl) in engine_remove_observer_by_token() 830 static int engine_remove_observer_by_path(struct lwm2m_ctx *ctx, struct lwm2m_obj_path *path) in engine_remove_observer_by_path() 861 struct lwm2m_ctx **sock_ctx = lwm2m_sock_ctx(); in engine_remove_observer_by_id() 1029 int lwm2m_update_observer_min_period(struct lwm2m_ctx *client_ctx, in lwm2m_update_observer_min_period() [all …]
|
D | lwm2m_rd_client.c | 118 struct lwm2m_ctx *ctx; 1538 int lwm2m_rd_client_start(struct lwm2m_ctx *client_ctx, const char *ep_name, in lwm2m_rd_client_start() 1586 int lwm2m_rd_client_stop(struct lwm2m_ctx *client_ctx, in lwm2m_rd_client_stop() 1727 struct lwm2m_ctx *lwm2m_rd_client_ctx(void) in lwm2m_rd_client_ctx() 1732 void lwm2m_rd_client_set_ctx(struct lwm2m_ctx *ctx) in lwm2m_rd_client_set_ctx() 1737 int lwm2m_rd_client_connection_resume(struct lwm2m_ctx *client_ctx) in lwm2m_rd_client_connection_resume() 1770 int lwm2m_rd_client_timeout(struct lwm2m_ctx *client_ctx) in lwm2m_rd_client_timeout() 1787 bool lwm2m_rd_client_is_registred(struct lwm2m_ctx *client_ctx) in lwm2m_rd_client_is_registred() 1795 bool lwm2m_rd_client_is_suspended(struct lwm2m_ctx *client_ctx) in lwm2m_rd_client_is_suspended()
|
D | lwm2m_message_handling.c | 446 void lwm2m_engine_context_close(struct lwm2m_ctx *client_ctx) in lwm2m_engine_context_close() 478 void lwm2m_engine_context_init(struct lwm2m_ctx *client_ctx) in lwm2m_engine_context_init() 543 struct lwm2m_message *lwm2m_get_message(struct lwm2m_ctx *client_ctx) in lwm2m_get_message() 778 int lwm2m_send_empty_ack(struct lwm2m_ctx *client_ctx, uint16_t mid) in lwm2m_send_empty_ack() 810 void lwm2m_acknowledge(struct lwm2m_ctx *client_ctx) in lwm2m_acknowledge() 2735 void lwm2m_udp_receive(struct lwm2m_ctx *client_ctx, uint8_t *buf, uint16_t buf_len, in lwm2m_udp_receive() 2930 struct lwm2m_ctx *client_ctx = msg->ctx; in notify_message_timeout_cb() 3084 int generate_notify_message(struct lwm2m_ctx *ctx, struct observe_node *obs, void *user_data) in generate_notify_message() 3293 int lwm2m_parse_peerinfo(char *url, struct lwm2m_ctx *client_ctx, bool is_firmware_uri) in lwm2m_parse_peerinfo() 3517 int lwm2m_send_cb(struct lwm2m_ctx *ctx, const struct lwm2m_obj_path path_list[], in lwm2m_send_cb()
|
D | lwm2m_obj_security.c | 225 int lwm2m_security_mode(struct lwm2m_ctx *ctx) in lwm2m_security_mode()
|
D | lwm2m_pull_context.c | 43 struct lwm2m_ctx firmware_ctx;
|
D | lwm2m_object.h | 484 struct lwm2m_ctx *ctx;
|
/Zephyr-latest/tests/net/lib/lwm2m/lwm2m_rd_client/src/ |
D | stubs.h | 43 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_engine_start, struct lwm2m_ctx *); 44 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_engine_stop, struct lwm2m_ctx *); 45 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_open_socket, struct lwm2m_ctx *); 56 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_socket_start, struct lwm2m_ctx *); 57 int lwm2m_socket_start_fake_fail(struct lwm2m_ctx *client_ctx); 58 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_socket_close, struct lwm2m_ctx *); 59 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_close_socket, struct lwm2m_ctx *); 60 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_socket_suspend, struct lwm2m_ctx *); 64 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_engine_connection_resume, struct lwm2m_ctx *); 65 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_push_queued_buffers, struct lwm2m_ctx *); [all …]
|
D | stubs.c | 60 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_engine_start, struct lwm2m_ctx *); 61 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_engine_stop, struct lwm2m_ctx *); 62 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_open_socket, struct lwm2m_ctx *); 88 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_socket_start, struct lwm2m_ctx *); 89 int lwm2m_socket_start_fake_fail(struct lwm2m_ctx *client_ctx) in lwm2m_socket_start_fake_fail() 93 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_socket_close, struct lwm2m_ctx *); 94 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_close_socket, struct lwm2m_ctx *); 95 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_socket_suspend, struct lwm2m_ctx *); 97 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_engine_connection_resume, struct lwm2m_ctx *); 98 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_push_queued_buffers, struct lwm2m_ctx *); [all …]
|
D | main.c | 62 static void lwm2m_event_cb(struct lwm2m_ctx *client, enum lwm2m_rd_client_event client_event) in lwm2m_event_cb() 201 struct lwm2m_ctx ctx; in ZTEST() 227 struct lwm2m_ctx ctx; in ZTEST() 250 struct lwm2m_ctx ctx; in ZTEST() 273 struct lwm2m_ctx ctx; in ZTEST() 292 struct lwm2m_ctx ctx; in ZTEST() 318 struct lwm2m_ctx ctx; in ZTEST() 340 struct lwm2m_ctx ctx; in ZTEST() 363 struct lwm2m_ctx ctx; in ZTEST() 387 struct lwm2m_ctx ctx; in ZTEST() [all …]
|
/Zephyr-latest/tests/net/lib/lwm2m/lwm2m_engine/src/ |
D | stubs.h | 37 DECLARE_FAKE_VALUE_FUNC(int, generate_notify_message, struct lwm2m_ctx *, struct observe_node *, 42 DECLARE_FAKE_VOID_FUNC(lwm2m_udp_receive, struct lwm2m_ctx *, uint8_t *, uint16_t, 44 DECLARE_FAKE_VALUE_FUNC(bool, lwm2m_rd_client_is_registred, struct lwm2m_ctx *); 45 DECLARE_FAKE_VOID_FUNC(lwm2m_engine_context_close, struct lwm2m_ctx *); 48 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_parse_peerinfo, char *, struct lwm2m_ctx *, bool); 58 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_security_mode, struct lwm2m_ctx *);
|
D | stubs.c | 23 DEFINE_FAKE_VALUE_FUNC(int, generate_notify_message, struct lwm2m_ctx *, struct observe_node *, 28 DEFINE_FAKE_VOID_FUNC(lwm2m_udp_receive, struct lwm2m_ctx *, uint8_t *, uint16_t, 30 DEFINE_FAKE_VALUE_FUNC(bool, lwm2m_rd_client_is_registred, struct lwm2m_ctx *); 31 DEFINE_FAKE_VOID_FUNC(lwm2m_engine_context_close, struct lwm2m_ctx *); 34 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_parse_peerinfo, char *, struct lwm2m_ctx *, bool); 43 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_security_mode, struct lwm2m_ctx *);
|
D | main.c | 98 struct lwm2m_ctx ctx; in ZTEST() 113 struct lwm2m_ctx **eng_ctx = lwm2m_sock_ctx(); in ZTEST() 129 struct lwm2m_ctx ctx; in ZTEST() 154 struct lwm2m_ctx ctx; in ZTEST() 176 struct lwm2m_ctx ctx; in ZTEST() 191 struct lwm2m_ctx ctx; in ZTEST() 209 struct lwm2m_ctx ctx; in ZTEST() 231 struct lwm2m_ctx ctx; in ZTEST() 263 struct lwm2m_ctx ctx; in ZTEST() 280 struct lwm2m_ctx ctx; in ZTEST() [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | lwm2m.h | 132 struct lwm2m_ctx; 182 typedef void (*lwm2m_ctx_event_cb_t)(struct lwm2m_ctx *ctx, 185 typedef int (*lwm2m_set_sockopt_cb_t)(struct lwm2m_ctx *client_ctx); 207 struct lwm2m_ctx { struct 255 int (*load_credentials)(struct lwm2m_ctx *client_ctx); argument 807 int lwm2m_update_observer_min_period(struct lwm2m_ctx *client_ctx, 824 int lwm2m_update_observer_max_period(struct lwm2m_ctx *client_ctx, 1414 int lwm2m_engine_stop(struct lwm2m_ctx *client_ctx); 1427 int lwm2m_engine_start(struct lwm2m_ctx *client_ctx); 1440 void lwm2m_acknowledge(struct lwm2m_ctx *client_ctx); [all …]
|
/Zephyr-latest/tests/net/lib/lwm2m/interop/src/ |
D | lwm2m-client.c | 30 static struct lwm2m_ctx client; 31 static void rd_client_event(struct lwm2m_ctx *client, 62 int set_socketoptions(struct lwm2m_ctx *ctx) in set_socketoptions() 138 static void rd_client_event(struct lwm2m_ctx *client, in rd_client_event()
|
/Zephyr-latest/samples/net/lwm2m_client/src/ |
D | lwm2m-client.c | 52 static struct lwm2m_ctx client_ctx; 201 static void rd_client_event(struct lwm2m_ctx *client, in rd_client_event()
|
/Zephyr-latest/tests/net/lib/lwm2m/block_transfer/src/ |
D | main.c | 34 struct lwm2m_ctx ctx; 53 memset(&fixture->ctx, 0, sizeof(struct lwm2m_ctx)); in net_block_transfer_before()
|
/Zephyr-latest/doc/connectivity/networking/api/ |
D | lwm2m.rst | 253 :c:struct:`lwm2m_ctx` structure: 258 static struct lwm2m_ctx client; 278 static void rd_client_event(struct lwm2m_ctx *client, 417 LwM2M stack provides callbacks in the :c:struct:`lwm2m_ctx` structure. 420 …ptions are required, you can overwrite the :c:func:`lwm2m_ctx.load_credentials` or :c:func:`lwm2m_…
|