Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
link_format.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2022 ML!PA Consulting GmbH
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
21
#ifndef NET_NANOCOAP_LINK_FORMAT_H
22
#define NET_NANOCOAP_LINK_FORMAT_H
23
24
#include "
net/nanocoap_sock.h
"
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
39
typedef
int (*
coap_link_format_handler_t
)(
char
*entry,
void
*ctx);
40
54
int
nanocoap_link_format_get
(
nanocoap_sock_t
*sock,
const
char
*path,
55
coap_link_format_handler_t
cb,
void
*arg,
56
char
*dirent_buf,
size_t
dirent_buf_len);
57
70
int
nanocoap_link_format_get_url
(
const
char
*url,
71
coap_link_format_handler_t
cb,
void
*arg,
72
char
*dirent_buf,
size_t
dirent_buf_len);
73
74
#ifdef __cplusplus
75
}
76
#endif
77
#endif
/* NET_NANOCOAP_LINK_FORMAT_H */
nanocoap_link_format_get_url
int nanocoap_link_format_get_url(const char *url, coap_link_format_handler_t cb, void *arg, char *dirent_buf, size_t dirent_buf_len)
Downloads the resource behind url via blockwise GET.
nanocoap_link_format_get
int nanocoap_link_format_get(nanocoap_sock_t *sock, const char *path, coap_link_format_handler_t cb, void *arg, char *dirent_buf, size_t dirent_buf_len)
Downloads the resource behind path via blockwise GET.
coap_link_format_handler_t
int(* coap_link_format_handler_t)(char *entry, void *ctx)
Callback function called for each resource on the directory.
Definition:
link_format.h:39
nanocoap_sock.h
nanocoap high-level API
nanocoap_sock_t
NanoCoAP socket struct.
Definition:
nanocoap_sock.h:211
Generated on Tue Apr 15 2025 19:07:09 by
1.9.1