Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
link_format.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2022 ML!PA Consulting GmbH
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
21
#include "
net/nanocoap_sock.h
"
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
36
typedef
int (*
coap_link_format_handler_t
)(
char
*entry,
void
*ctx);
37
51
int
nanocoap_link_format_get
(
nanocoap_sock_t
*sock,
const
char
*path,
52
coap_link_format_handler_t
cb,
void
*arg,
53
char
*dirent_buf,
size_t
dirent_buf_len);
54
67
int
nanocoap_link_format_get_url
(
const
char
*url,
68
coap_link_format_handler_t
cb,
void
*arg,
69
char
*dirent_buf,
size_t
dirent_buf_len);
70
71
#ifdef __cplusplus
72
}
73
#endif
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:36
nanocoap_sock.h
nanocoap high-level API
nanocoap_sock_t
NanoCoAP socket struct.
Definition:
nanocoap_sock.h:207
Generated on Mon Nov 24 2025 18:43:16 by
1.9.1