Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
coap.h
1
/*
2
* Copyright (C) 2019 Kaspar Schleiser <kaspar@schleiser.de>
3
* 2019 Inria
4
* 2019 Freie Universität Berlin
5
*
6
* This file is subject to the terms and conditions of the GNU Lesser
7
* General Public License v2.1. See the file LICENSE in the top level
8
* directory for more details.
9
*/
10
11
#pragma once
12
26
27
#include "
net/nanocoap.h
"
28
#include "suit/transport/worker.h"
29
30
#ifdef __cplusplus
31
extern
"C"
{
32
#endif
33
34
/*
35
* Dear Reviewer,
36
*
37
* At the time of PR'ing this code, there was a pile of CoAP PR's waiting for
38
* reviews. Some of that functionality is needed in one way or another for
39
* SUIT. In order to not block software updates with CoAP refactoring, some of
40
* the work-in-progress code has been copied here. We expect this to be
41
* removed as soon as CoAP in master provides similar functionality.
42
*
43
* As this is internal code that will go soon, I exclude this from Doxygen.
44
*
45
* Kaspar (July 2019)
46
*/
47
#ifndef DOXYGEN
48
52
#ifndef CONFIG_SUIT_COAP_BLOCKSIZE
53
#define CONFIG_SUIT_COAP_BLOCKSIZE CONFIG_NANOCOAP_BLOCKSIZE_DEFAULT
54
#endif
55
65
static
inline
void
suit_coap_trigger(
const
uint8_t *url,
size_t
len)
66
{
67
suit_worker_trigger
((
const
char
*)url, len);
68
}
69
70
#endif
/* DOXYGEN */
71
72
#ifdef __cplusplus
73
}
74
#endif
75
suit_worker_trigger
bool suit_worker_trigger(const char *url, size_t len)
Trigger a SUIT update via a worker thread.
nanocoap.h
nanocoap API
Generated on Mon Sep 15 2025 13:46:12 by
1.13.2