libcoap
4.3.0
subscribe.h
Go to the documentation of this file.
1
/*
2
* subscribe.h -- subscription handling for CoAP
3
* see RFC7641
4
*
5
* Copyright (C) 2010-2012,2014-2021 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
32
#define COAP_OBSERVE_ESTABLISH 0
33
39
#define COAP_OBSERVE_CANCEL 1
40
51
void
coap_resource_set_get_observable
(
coap_resource_t
*resource,
int
mode);
52
62
int
63
coap_resource_notify_observers
(
coap_resource_t
*resource,
64
const
coap_string_t
*query);
65
68
#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.
Definition:
resource.c:1050
coap_resource_t
Abstraction of resource that can be attached to coap_context_t.
Definition:
coap_resource_internal.h:42
coap_string_t
CoAP string data definition.
Definition:
str.h:32
include
coap3
subscribe.h
Generated on Mon Jun 21 2021 10:40:33 for libcoap by
1.9.1