libcoap
4.3.1
coap_subscribe.h
Go to the documentation of this file.
1
/*
2
* coap_subscribe.h -- subscription handling for CoAP
3
* see RFC7641
4
*
5
* Copyright (C) 2010-2012,2014-2022 Olaf Bergmann <bergmann@tzi.org>
6
*
7
* SPDX-License-Identifier: BSD-2-Clause
8
*
9
* This file is part of the CoAP library libcoap. Please see README for terms
10
* of use.
11
*/
12
18
#ifndef COAP_SUBSCRIBE_H_
19
#define COAP_SUBSCRIBE_H_
20
33
#define COAP_OBSERVE_ESTABLISH 0
34
40
#define COAP_OBSERVE_CANCEL 1
41
52
void
coap_resource_set_get_observable
(
coap_resource_t
*resource,
int
mode);
53
63
int
64
coap_resource_notify_observers
(
coap_resource_t
*resource,
65
const
coap_string_t
*query);
66
69
#endif
/* COAP_SUBSCRIBE_H_ */
coap_resource_notify_observers
int coap_resource_notify_observers(coap_resource_t *resource, const coap_string_t *query)
Initiate the sending of an Observe packet for all observers of resource, optionally matching query if...
coap_resource_set_get_observable
void coap_resource_set_get_observable(coap_resource_t *resource, int mode)
Set whether a resource is observable.
coap_resource_t
Abstraction of resource that can be attached to coap_context_t.
Definition:
coap_resource_internal.h:45
coap_string_t
CoAP string data definition.
Definition:
str.h:38
include
coap3
coap_subscribe.h
Generated on Fri Sep 2 2022 14:47:54 for libcoap by
1.9.4