Home
last modified time | relevance | path

Searched refs:lwm2m_ctx (Results 1 – 23 of 23) sorted by relevance

/Zephyr-Core-3.5.0/subsys/net/lib/lwm2m/
Dlwm2m_engine.h53 void lwm2m_engine_context_close(struct lwm2m_ctx *client_ctx);
60 void lwm2m_engine_context_init(struct lwm2m_ctx *client_ctx);
75 bool lwm2m_engine_bootstrap_override(struct lwm2m_ctx *client_ctx, struct lwm2m_obj_path *path);
260 int lwm2m_open_socket(struct lwm2m_ctx *client_ctx);
269 int lwm2m_close_socket(struct lwm2m_ctx *client_ctx);
278 int lwm2m_socket_suspend(struct lwm2m_ctx *client_ctx);
286 int lwm2m_socket_add(struct lwm2m_ctx *ctx);
293 void lwm2m_socket_del(struct lwm2m_ctx *ctx);
302 int lwm2m_socket_start(struct lwm2m_ctx *client_ctx);
310 int lwm2m_socket_close(struct lwm2m_ctx *client_ctx);
[all …]
Dlwm2m_rd_client.h49 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);
Dlwm2m_message_handling.h43 struct lwm2m_message *lwm2m_get_message(struct lwm2m_ctx *client_ctx);
50 void lwm2m_udp_receive(struct lwm2m_ctx *client_ctx, uint8_t *buf, uint16_t buf_len,
53 int generate_notify_message(struct lwm2m_ctx *ctx, struct observe_node *obs, void *user_data);
56 int lwm2m_send_empty_ack(struct lwm2m_ctx *client_ctx, uint16_t mid);
76 int lwm2m_parse_peerinfo(char *url, struct lwm2m_ctx *client_ctx, bool is_firmware_uri);
Dlwm2m_engine.c108 static struct lwm2m_ctx *sock_ctx[MAX_POLL_FD];
118 struct lwm2m_ctx **lwm2m_sock_ctx(void) { return sock_ctx; } in lwm2m_sock_ctx()
126 static int lwm2m_socket_update(struct lwm2m_ctx *ctx);
137 int lwm2m_open_socket(struct lwm2m_ctx *client_ctx) in lwm2m_open_socket()
164 int lwm2m_close_socket(struct lwm2m_ctx *client_ctx) in lwm2m_close_socket()
187 int lwm2m_socket_suspend(struct lwm2m_ctx *client_ctx) in lwm2m_socket_suspend()
205 int lwm2m_engine_connection_resume(struct lwm2m_ctx *client_ctx) in lwm2m_engine_connection_resume()
230 int lwm2m_push_queued_buffers(struct lwm2m_ctx *client_ctx) in lwm2m_push_queued_buffers()
248 bool lwm2m_engine_bootstrap_override(struct lwm2m_ctx *client_ctx, struct lwm2m_obj_path *path) in lwm2m_engine_bootstrap_override()
359 static int64_t retransmit_request(struct lwm2m_ctx *client_ctx, const int64_t timestamp) in retransmit_request()
[all …]
Dlwm2m_observation.h38 void remove_observer_from_list(struct lwm2m_ctx *ctx, sys_snode_t *prev_node,
46 int engine_remove_observer_by_token(struct lwm2m_ctx *ctx, const uint8_t *token, uint8_t tkl);
Dlwm2m_shell.c60 struct lwm2m_ctx *ctx = lwm2m_rd_client_ctx(); in cmd_send()
99 struct lwm2m_ctx *ctx = lwm2m_rd_client_ctx(); in cmd_exec()
142 struct lwm2m_ctx *ctx = lwm2m_rd_client_ctx(); in cmd_read()
288 struct lwm2m_ctx *ctx = lwm2m_rd_client_ctx(); in cmd_write()
410 struct lwm2m_ctx *ctx = lwm2m_rd_client_ctx(); in cmd_start()
452 struct lwm2m_ctx *ctx = lwm2m_rd_client_ctx(); in cmd_stop()
485 struct lwm2m_ctx *ctx = lwm2m_rd_client_ctx(); in cmd_update()
Dlwm2m_observation.c68 struct lwm2m_ctx **lwm2m_sock_ctx(void);
343 struct lwm2m_ctx **sock_ctx = lwm2m_sock_ctx(); in lwm2m_notify_observer_path()
426 struct lwm2m_ctx *ctx, uint8_t tkl, uint16_t format, in engine_observe_node_init()
459 static void remove_observer_path_from_list(struct lwm2m_ctx *ctx, struct observe_node *obs, in remove_observer_path_from_list()
473 static void engine_observe_single_path_id_remove(struct lwm2m_ctx *ctx, struct observe_node *obs, in engine_observe_single_path_id_remove()
713 void remove_observer_from_list(struct lwm2m_ctx *ctx, sys_snode_t *prev_node, in remove_observer_from_list()
725 int engine_remove_observer_by_token(struct lwm2m_ctx *ctx, const uint8_t *token, uint8_t tkl) in engine_remove_observer_by_token()
812 static int engine_remove_observer_by_path(struct lwm2m_ctx *ctx, struct lwm2m_obj_path *path) in engine_remove_observer_by_path()
843 struct lwm2m_ctx **sock_ctx = lwm2m_sock_ctx(); in engine_remove_observer_by_id()
1011 int lwm2m_update_observer_min_period(struct lwm2m_ctx *client_ctx, in lwm2m_update_observer_min_period()
[all …]
Dlwm2m_rd_client.c113 struct lwm2m_ctx *ctx;
1406 int lwm2m_rd_client_start(struct lwm2m_ctx *client_ctx, const char *ep_name, in lwm2m_rd_client_start()
1451 int lwm2m_rd_client_stop(struct lwm2m_ctx *client_ctx, in lwm2m_rd_client_stop()
1568 struct lwm2m_ctx *lwm2m_rd_client_ctx(void) in lwm2m_rd_client_ctx()
1573 int lwm2m_rd_client_connection_resume(struct lwm2m_ctx *client_ctx) in lwm2m_rd_client_connection_resume()
1601 int lwm2m_rd_client_timeout(struct lwm2m_ctx *client_ctx) in lwm2m_rd_client_timeout()
1618 bool lwm2m_rd_client_is_registred(struct lwm2m_ctx *client_ctx) in lwm2m_rd_client_is_registred()
1626 bool lwm2m_rd_client_is_suspended(struct lwm2m_ctx *client_ctx) in lwm2m_rd_client_is_suspended()
Dlwm2m_pull_context.c42 struct lwm2m_ctx firmware_ctx;
438 (void)memset(&context.firmware_ctx, 0, sizeof(struct lwm2m_ctx)); in lwm2m_pull_context_start_transfer()
Dlwm2m_message_handling.c433 void lwm2m_engine_context_close(struct lwm2m_ctx *client_ctx) in lwm2m_engine_context_close()
463 void lwm2m_engine_context_init(struct lwm2m_ctx *client_ctx) in lwm2m_engine_context_init()
527 struct lwm2m_message *lwm2m_get_message(struct lwm2m_ctx *client_ctx) in lwm2m_get_message()
732 int lwm2m_send_empty_ack(struct lwm2m_ctx *client_ctx, uint16_t mid) in lwm2m_send_empty_ack()
761 void lwm2m_acknowledge(struct lwm2m_ctx *client_ctx) in lwm2m_acknowledge()
2636 void lwm2m_udp_receive(struct lwm2m_ctx *client_ctx, uint8_t *buf, uint16_t buf_len, in lwm2m_udp_receive()
2819 struct lwm2m_ctx *client_ctx = msg->ctx; in notify_message_timeout_cb()
2973 int generate_notify_message(struct lwm2m_ctx *ctx, struct observe_node *obs, void *user_data) in generate_notify_message()
3182 int lwm2m_parse_peerinfo(char *url, struct lwm2m_ctx *client_ctx, bool is_firmware_uri) in lwm2m_parse_peerinfo()
3396 int lwm2m_send_cb(struct lwm2m_ctx *ctx, const struct lwm2m_obj_path path_list[], in lwm2m_send_cb()
[all …]
Dlwm2m_obj_security.c215 int lwm2m_security_mode(struct lwm2m_ctx *ctx) in lwm2m_security_mode()
Dlwm2m_object.h484 struct lwm2m_ctx *ctx;
/Zephyr-Core-3.5.0/tests/net/lib/lwm2m/lwm2m_rd_client/src/
Dstubs.h43 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 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_socket_close, struct lwm2m_ctx *);
58 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_close_socket, struct lwm2m_ctx *);
59 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_socket_suspend, struct lwm2m_ctx *);
61 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_engine_connection_resume, struct lwm2m_ctx *);
62 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_push_queued_buffers, struct lwm2m_ctx *);
63 DECLARE_FAKE_VOID_FUNC(lwm2m_engine_context_init, struct lwm2m_ctx *);
[all …]
Dstubs.c60 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 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_socket_close, struct lwm2m_ctx *);
90 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_close_socket, struct lwm2m_ctx *);
91 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_socket_suspend, struct lwm2m_ctx *);
93 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_engine_connection_resume, struct lwm2m_ctx *);
94 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_push_queued_buffers, struct lwm2m_ctx *);
95 DEFINE_FAKE_VOID_FUNC(lwm2m_engine_context_init, struct lwm2m_ctx *);
[all …]
Dmain.c62 static void lwm2m_event_cb(struct lwm2m_ctx *client, enum lwm2m_rd_client_event client_event) in lwm2m_event_cb()
197 struct lwm2m_ctx ctx; in ZTEST()
224 struct lwm2m_ctx ctx; in ZTEST()
248 struct lwm2m_ctx ctx; in ZTEST()
272 struct lwm2m_ctx ctx; in ZTEST()
290 struct lwm2m_ctx ctx; in ZTEST()
311 struct lwm2m_ctx ctx; in ZTEST()
334 struct lwm2m_ctx ctx; in ZTEST()
358 struct lwm2m_ctx ctx; in ZTEST()
383 struct lwm2m_ctx ctx; in ZTEST()
[all …]
/Zephyr-Core-3.5.0/tests/net/lib/lwm2m/lwm2m_engine/src/
Dstubs.h36 DECLARE_FAKE_VALUE_FUNC(int, generate_notify_message, struct lwm2m_ctx *, struct observe_node *,
41 DECLARE_FAKE_VOID_FUNC(lwm2m_udp_receive, struct lwm2m_ctx *, uint8_t *, uint16_t,
43 DECLARE_FAKE_VALUE_FUNC(bool, lwm2m_rd_client_is_registred, struct lwm2m_ctx *);
44 DECLARE_FAKE_VOID_FUNC(lwm2m_engine_context_close, struct lwm2m_ctx *);
47 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_parse_peerinfo, char *, struct lwm2m_ctx *, bool);
57 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_security_mode, struct lwm2m_ctx *);
Dstubs.c22 DEFINE_FAKE_VALUE_FUNC(int, generate_notify_message, struct lwm2m_ctx *, struct observe_node *,
27 DEFINE_FAKE_VOID_FUNC(lwm2m_udp_receive, struct lwm2m_ctx *, uint8_t *, uint16_t,
29 DEFINE_FAKE_VALUE_FUNC(bool, lwm2m_rd_client_is_registred, struct lwm2m_ctx *);
30 DEFINE_FAKE_VOID_FUNC(lwm2m_engine_context_close, struct lwm2m_ctx *);
33 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_parse_peerinfo, char *, struct lwm2m_ctx *, bool);
42 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_security_mode, struct lwm2m_ctx *);
Dmain.c94 struct lwm2m_ctx ctx; in ZTEST()
110 struct lwm2m_ctx **eng_ctx = lwm2m_sock_ctx(); in ZTEST()
126 struct lwm2m_ctx ctx; in ZTEST()
151 struct lwm2m_ctx ctx; in ZTEST()
173 struct lwm2m_ctx ctx; in ZTEST()
188 struct lwm2m_ctx ctx; in ZTEST()
206 struct lwm2m_ctx ctx; in ZTEST()
228 struct lwm2m_ctx ctx; in ZTEST()
260 struct lwm2m_ctx ctx; in ZTEST()
275 struct lwm2m_ctx ctx; in ZTEST()
[all …]
/Zephyr-Core-3.5.0/include/zephyr/net/
Dlwm2m.h124 struct lwm2m_ctx;
132 typedef void (*lwm2m_ctx_event_cb_t)(struct lwm2m_ctx *ctx,
140 struct lwm2m_ctx { struct
189 int (*load_credentials)(struct lwm2m_ctx *client_ctx); argument
197 int (*set_socketoptions)(struct lwm2m_ctx *client_ctx); argument
731 int lwm2m_engine_update_observer_min_period(struct lwm2m_ctx *client_ctx, const char *pathstr,
748 int lwm2m_update_observer_min_period(struct lwm2m_ctx *client_ctx,
768 int lwm2m_engine_update_observer_max_period(struct lwm2m_ctx *client_ctx, const char *pathstr,
785 int lwm2m_update_observer_max_period(struct lwm2m_ctx *client_ctx,
2027 int lwm2m_engine_stop(struct lwm2m_ctx *client_ctx);
[all …]
/Zephyr-Core-3.5.0/tests/net/lib/lwm2m/interop/src/
Dlwm2m-client.c30 static struct lwm2m_ctx client;
59 static void rd_client_event(struct lwm2m_ctx *client, in rd_client_event()
/Zephyr-Core-3.5.0/samples/net/lwm2m_client/src/
Dlwm2m-client.c43 static struct lwm2m_ctx client_ctx;
173 static void rd_client_event(struct lwm2m_ctx *client, in rd_client_event()
/Zephyr-Core-3.5.0/doc/connectivity/networking/api/
Dlwm2m.rst251 :c:struct:`lwm2m_ctx` structure:
256 static struct lwm2m_ctx client;
276 static void rd_client_event(struct lwm2m_ctx *client,
407 LwM2M stack provides callbacks in the :c:struct:`lwm2m_ctx` structure.
410 …ptions are required, you can overwrite the :c:func:`lwm2m_ctx.load_credentials` or :c:func:`lwm2m_…
/Zephyr-Core-3.5.0/tests/net/lib/lwm2m/block_transfer/src/
Dmain.c33 struct lwm2m_ctx ctx;
52 memset(&fixture->ctx, 0, sizeof(struct lwm2m_ctx)); in net_block_transfer_before()