Zephyr Project API
3.5.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
coap_link_format.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018 Intel Corporation
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
13
#ifndef ZEPHYR_INCLUDE_NET_COAP_LINK_FORMAT_H_
14
#define ZEPHYR_INCLUDE_NET_COAP_LINK_FORMAT_H_
15
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
29
#define COAP_WELL_KNOWN_CORE_PATH \
30
((const char * const[]) { ".well-known", "core", NULL })
31
32
int
coap_well_known_core_get
(
struct
coap_resource
*resource,
33
struct
coap_packet
*request,
34
struct
coap_packet
*response,
35
uint8_t
*
data
,
uint16_t
len);
36
42
struct
coap_core_metadata
{
43
const
char
*
const
*
attributes
;
44
void
*
user_data
;
45
};
46
47
#ifdef __cplusplus
48
}
49
#endif
50
55
#endif
/* ZEPHYR_INCLUDE_NET_COAP_LINK_FORMAT_H_ */
coap_well_known_core_get
int coap_well_known_core_get(struct coap_resource *resource, struct coap_packet *request, struct coap_packet *response, uint8_t *data, uint16_t len)
uint8_t
__UINT8_TYPE__ uint8_t
Definition
stdint.h:88
uint16_t
__UINT16_TYPE__ uint16_t
Definition
stdint.h:89
coap_core_metadata
In case you want to add attributes to the resources included in the 'well-known/core' "virtual" resou...
Definition
coap_link_format.h:42
coap_core_metadata::user_data
void * user_data
Definition
coap_link_format.h:44
coap_core_metadata::attributes
const char *const * attributes
Definition
coap_link_format.h:43
coap_packet
Representation of a CoAP Packet.
Definition
coap.h:268
coap_resource
Description of CoAP resource.
Definition
coap.h:245
data
static fdata_t data[2]
Definition
test_fifo_contexts.c:15
include
zephyr
net
coap_link_format.h
Generated on Tue Mar 5 2024 08:42:06 for Zephyr Project API by
1.9.8