Home
last modified time | relevance | path

Searched refs:observer (Results 1 – 25 of 36) sorted by relevance

12

/Zephyr-latest/samples/net/sockets/coap_server/src/
Dobserver.c116 struct coap_observer *observer) in obs_notify() argument
119 &observer->addr, in obs_notify()
120 sizeof(observer->addr), in obs_notify()
122 observer->token, observer->tkl, false); in obs_notify()
/Zephyr-latest/samples/bluetooth/observer/
DCMakeLists.txt5 project(observer) project
9 src/observer.c
DREADME.rst27 This sample can be found under :zephyr_file:`samples/bluetooth/observer` in the
/Zephyr-latest/tests/bsim/bluetooth/host/adv/chain/
DCMakeLists.txt11 ${ZEPHYR_BASE}/samples/bluetooth/observer/src/observer.c
/Zephyr-latest/samples/subsys/zbus/runtime_obs_registration/
DREADME.rst2 :name: Runtime observer registration
5 Use zbus' runtime observer registration to filter data generated by a producer.
9 …a way of using the runtime observer registration feature. The developer can understand how to use …
/Zephyr-latest/include/zephyr/net/
Dcoap_mgmt.h93 struct coap_observer *observer; member
Dcoap.h272 struct coap_observer *observer);
996 void coap_observer_init(struct coap_observer *observer,
1010 struct coap_observer *observer);
1022 struct coap_observer *observer);
Dlwm2m.h220 sys_slist_t observer; member
/Zephyr-latest/doc/connectivity/networking/api/
Dcoap_server.rst208 static void temp_notify(struct coap_resource *resource, struct coap_observer *observer)
210 send_temperature(resource, &observer->addr, sizeof(observer->addr), resource->age, 0,
211 observer->token, observer->tkl, false);
251 printk("CoAP observer added");
254 printk("CoAP observer removed");
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_observation.c369 SYS_SLIST_FOR_EACH_CONTAINER(&sock_ctx[i]->observer, obs, node) { in lwm2m_notify_observer_path()
462 sys_slist_append(&ctx->observer, &obs->node); in engine_observe_node_init()
611 obs = engine_observe_node_discover(&msg->ctx->observer, &prev_node, &lwm2m_path_list, NULL, in engine_add_observer()
700 obs = engine_observe_node_discover(&msg->ctx->observer, &prev_node, &lwm2m_path_list, NULL, in engine_add_composite_observer()
739 sys_slist_remove(&ctx->observer, prev_node, &obs->node); in remove_observer_from_list()
753 obs = engine_observe_node_discover(&ctx->observer, &prev_node, NULL, token, tkl); in engine_remove_observer_by_token()
790 obs = engine_observe_node_discover(&msg->ctx->observer, &prev_node, &lwm2m_path_list, token, in engine_remove_composite_observer()
843 obs = engine_observe_node_discover(&ctx->observer, &prev_node, &lwm2m_path_list, NULL, 0); in engine_remove_observer_by_path()
865 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&sock_ctx[i]->observer, obs, tmp, node) { in engine_remove_observer_by_id()
936 static int lwm2m_engine_observer_timestamp_update(sys_slist_t *observer, in lwm2m_engine_observer_timestamp_update() argument
[all …]
Dlwm2m_message_handling.c456 while (!sys_slist_is_empty(&client_ctx->observer)) { in lwm2m_engine_context_close()
457 obs_node = sys_slist_get_not_empty(&client_ctx->observer); in lwm2m_engine_context_close()
481 sys_slist_init(&client_ctx->observer); in lwm2m_engine_context_init()
2933 obs = engine_observe_node_discover(&client_ctx->observer, &prev_node, NULL, in notify_message_timeout_cb()
3005 obs = engine_observe_node_discover(&msg->ctx->observer, &prev_node, NULL, in notify_message_reply_cb()
/Zephyr-latest/subsys/net/lib/coap/
Dcoap_server.c638 struct coap_observer *observer; in coap_resource_parse_observe() local
641 observer = coap_find_observer(service->data->observers, MAX_OBSERVERS, addr, token, in coap_resource_parse_observe()
643 if (observer != NULL) { in coap_resource_parse_observe()
649 observer = coap_observer_next_unused(service->data->observers, MAX_OBSERVERS); in coap_resource_parse_observe()
650 if (observer == NULL) { in coap_resource_parse_observe()
655 coap_observer_init(observer, request, addr); in coap_resource_parse_observe()
656 coap_register_observer(resource, observer); in coap_resource_parse_observe()
Dcoap.c1914 void coap_observer_init(struct coap_observer *observer, in coap_observer_init() argument
1918 observer->tkl = coap_header_get_token(request, observer->token); in coap_observer_init()
1920 net_ipaddr_copy(&observer->addr, addr); in coap_observer_init()
1924 struct coap_observer *observer, in coap_observer_raise_event() argument
1930 .observer = observer, in coap_observer_raise_event()
1936 ARG_UNUSED(observer); in coap_observer_raise_event()
1943 struct coap_observer *observer) in coap_register_observer() argument
1947 sys_slist_append(&resource->observers, &observer->list); in coap_register_observer()
1954 coap_observer_raise_event(resource, observer, NET_EVENT_COAP_OBSERVER_ADDED); in coap_register_observer()
1960 struct coap_observer *observer) in coap_remove_observer() argument
[all …]
/Zephyr-latest/tests/net/lib/coap/src/
Dmain.c43 struct coap_observer *observer);
46 struct coap_observer *observer);
839 struct coap_observer *observer) in server_resource_1_callback() argument
843 r = ipaddr_cmp(&observer->addr, (const struct sockaddr *)&dummy_addr); in server_resource_1_callback()
846 coap_remove_observer(resource, observer); in server_resource_1_callback()
849 struct coap_observer *observer) in server_resource_2_callback() argument
853 r = ipaddr_cmp(&observer->addr, (const struct sockaddr *)&dummy_addr); in server_resource_2_callback()
862 struct coap_observer *observer; in server_resource_1_get() local
873 observer = coap_observer_next_unused(observers, NUM_OBSERVERS); in server_resource_1_get()
874 zassert_not_null(observer, "There should be an available observer"); in server_resource_1_get()
[all …]
/Zephyr-latest/doc/services/zbus/
Dindex.rst28 published channel's observers. Based on the observer's type, it can access the message directly,
72 * Subscriber, a thread-based observer that relies internally on a message queue where the event
74 notified. Note this kind of observer does not receive the message itself. It should read the
76 * Message subscribers, a thread-based observer that relies internally on a FIFO where the event
80 every observation, a pair channel/observer. Developers can statically allocate observation using the
82 enabling developers to create runtime observations. It is possible to disable an observer entirely
93 allocated (runtime observation). (a) shows that the observer and all observations are enabled. (b)
94 shows the observer is disabled, so the event dispatcher will ignore it. (c) shows the observer
163 ``L1`` and ``L2``; and channel A. Supposing ``L1``, ``L2``, ``MS1``, ``MS2``, and ``S1`` observer
306 Priority (HOP); even if the observer is not waiting for a message on the channel, it is considered
[all …]
/Zephyr-latest/samples/bluetooth/broadcaster_multiple/
DREADME.rst35 :zephyr_file:`samples/bluetooth/observer` in the Zephyr tree.
/Zephyr-latest/boards/silabs/dev_kits/sltb010a/doc/
Dindex.rst181 :zephyr-app: samples/bluetooth/observer
188 :zephyr-app: samples/bluetooth/observer
/Zephyr-latest/doc/connectivity/bluetooth/
Dbluetooth-le-host.rst41 connection-oriented roles central implicitly enables observer role, and
45 least the observer and broadcaster roles, and possibly also the
84 An observer role device will use the :c:func:`bt_le_scan_start` API to
292 default, mesh requires both observer and broadcaster role to be enabled.
/Zephyr-latest/samples/subsys/zbus/work_queue/
DREADME.rst9 …n using zbus to illustrate three different reaction options. First, the observer can react "instan…
/Zephyr-latest/tests/net/lib/lwm2m/lwm2m_engine/src/
Dmain.c239 sys_slist_init(&ctx.observer); in ZTEST()
246 sys_slist_append(&ctx.observer, &obs.node); in ZTEST()
/Zephyr-latest/boards/st/stm32wb5mmg/doc/
Dstm32wb5mmg.rst268 :zephyr_file:`samples/bluetooth/observer` demo application for
272 :zephyr-app: samples/bluetooth/observer
295 :zephyr-app: samples/bluetooth/observer
/Zephyr-latest/boards/sparkfun/thing_plus_matter_mgm240p/doc/
Dindex.rst148 :zephyr-app: samples/bluetooth/observer
/Zephyr-latest/boards/silabs/dev_kits/xg24_ek2703a/doc/
Dindex.rst149 :zephyr-app: samples/bluetooth/observer
/Zephyr-latest/boards/silabs/dev_kits/xg24_dk2601b/doc/
Dindex.rst159 :zephyr-app: samples/bluetooth/observer
/Zephyr-latest/doc/releases/
Dmigration-guide-3.6.rst542 :c:func:`coap_remove_observer` now returns a result if the observer was removed. This
547 * CoAP observer events have moved from a callback function in a CoAP resource to the Network Events
659 :c:func:`zbus_obs_attach_to_thread` inside the attaching thread. The observer will then assume the

12