12#ifndef ZEPHYR_INCLUDE_NET_COAP_MGMT_H_
13#define ZEPHYR_INCLUDE_NET_COAP_MGMT_H_
33#define _NET_COAP_LAYER NET_MGMT_LAYER_L4
34#define _NET_COAP_CODE 0x1c0
35#define _NET_COAP_IF_BASE (NET_MGMT_EVENT_BIT | \
36 NET_MGMT_LAYER(_NET_COAP_LAYER) | \
37 NET_MGMT_LAYER_CODE(_NET_COAP_CODE))
43enum net_event_coap_cmd {
45 NET_EVENT_COAP_CMD_SERVICE_STARTED = 1,
46 NET_EVENT_COAP_CMD_SERVICE_STOPPED,
48 NET_EVENT_COAP_CMD_OBSERVER_ADDED,
49 NET_EVENT_COAP_CMD_OBSERVER_REMOVED,
57#define NET_EVENT_COAP_SERVICE_STARTED \
58 (_NET_COAP_IF_BASE | NET_EVENT_COAP_CMD_SERVICE_STARTED)
63#define NET_EVENT_COAP_SERVICE_STOPPED \
64 (_NET_COAP_IF_BASE | NET_EVENT_COAP_CMD_SERVICE_STOPPED)
69#define NET_EVENT_COAP_OBSERVER_ADDED \
70 (_NET_COAP_IF_BASE | NET_EVENT_COAP_CMD_OBSERVER_ADDED)
75#define NET_EVENT_COAP_OBSERVER_REMOVED \
76 (_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:298
Description of CoAP resource.
Definition coap.h:280
CoAP Observer event structure.
Definition coap_mgmt.h:89
struct coap_resource * resource
The CoAP resource for which the event is emitted.
Definition coap_mgmt.h:91
struct coap_observer * observer
The observer that is added/removed.
Definition coap_mgmt.h:93
CoAP Service event structure.
Definition coap_mgmt.h:81
const struct coap_service * service
The CoAP service for which the event is emitted.
Definition coap_mgmt.h:83