12#ifndef ZEPHYR_INCLUDE_NET_COAP_MGMT_H_
13#define ZEPHYR_INCLUDE_NET_COAP_MGMT_H_
31#define _NET_COAP_LAYER NET_MGMT_LAYER_L4
32#define _NET_COAP_CODE 0x1c0
33#define _NET_COAP_IF_BASE (NET_MGMT_EVENT_BIT | \
34 NET_MGMT_LAYER(_NET_COAP_LAYER) | \
35 NET_MGMT_LAYER_CODE(_NET_COAP_CODE))
41enum net_event_coap_cmd {
43 NET_EVENT_COAP_CMD_SERVICE_STARTED = 1,
44 NET_EVENT_COAP_CMD_SERVICE_STOPPED,
46 NET_EVENT_COAP_CMD_OBSERVER_ADDED,
47 NET_EVENT_COAP_CMD_OBSERVER_REMOVED,
55#define NET_EVENT_COAP_SERVICE_STARTED \
56 (_NET_COAP_IF_BASE | NET_EVENT_COAP_CMD_SERVICE_STARTED)
61#define NET_EVENT_COAP_SERVICE_STOPPED \
62 (_NET_COAP_IF_BASE | NET_EVENT_COAP_CMD_SERVICE_STOPPED)
67#define NET_EVENT_COAP_OBSERVER_ADDED \
68 (_NET_COAP_IF_BASE | NET_EVENT_COAP_CMD_OBSERVER_ADDED)
73#define NET_EVENT_COAP_OBSERVER_REMOVED \
74 (_NET_COAP_IF_BASE | NET_EVENT_COAP_CMD_OBSERVER_REMOVED)
Network Management API public header.
Represents a remote device that is observing a local resource.
Definition coap.h:281
Description of CoAP resource.
Definition coap.h:263
CoAP Observer event structure.
Definition coap_mgmt.h:87
struct coap_resource * resource
The CoAP resource for which the event is emitted.
Definition coap_mgmt.h:89
struct coap_observer * observer
The observer that is added/removed.
Definition coap_mgmt.h:91
CoAP Service event structure.
Definition coap_mgmt.h:79
const struct coap_service * service
The CoAP service for which the event is emitted.
Definition coap_mgmt.h:81