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
53
63int
65 const coap_string_t *query);
66
69#endif /* COAP_SUBSCRIBE_H_ */
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...
void coap_resource_set_get_observable(coap_resource_t *resource, int mode)
Set whether a resource is observable.
Abstraction of resource that can be attached to coap_context_t.
CoAP string data definition.
Definition: str.h:38