Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
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
52
int
nanocoap_link_format_get
(
nanocoap_sock_t
*sock,
const
char
*path,
53
coap_link_format_handler_t
cb,
void
*arg);
54
65
int
nanocoap_link_format_get_url
(
const
char
*url,
66
coap_link_format_handler_t
cb,
void
*arg);
67
68
#ifdef __cplusplus
69
}
70
#endif
71
#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)
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)
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:204
Generated on Fri Dec 20 2024 20:01:57 by
1.9.8