1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-23 13:33:49 +01:00

1725 Commits

Author SHA1 Message Date
Martine Lenders
64756e4428
examples/default: fix dependency modeling 2025-02-05 11:51:02 +01:00
Martine Lenders
3445cdc0ff
Merge pull request #21118 from OlegHahm/pr/feature/ia_na_for_6lbr
Request temporary address (IA_NA) for the 6lbr example
2025-02-05 10:20:27 +00:00
mguetschow
287324cc42
Merge pull request #21171 from mguetschow/shell-commands-xfa
examples: migrate to XFA SHELL_COMMAND
2025-01-30 09:05:37 +00:00
Oleg Hahm
63a8f46d9e examples/gnrc_border_router: request temp address
Additionally to requesting a delegated prefix via DHCPv6 this also
enables to ask for a temporary (non-permanent) address on the 6lbr. If
the upstream DHCP server provides one, this can be used to establish
end-to-end connectivity from the 6lbr towards an Internet host directly.
2025-01-29 22:57:09 +01:00
Mikolai Gütschow
8f5f268d99
examples: migrate to XFA SHELL_COMMAND 2025-01-29 13:54:01 +01:00
mguetschow
f097c89638
Merge pull request #21138 from mguetschow/psa-cc310-dma-check
pkg/driver_cryptocell_310: check for input data to be in RAM
2025-01-29 10:31:22 +00:00
Martine Lenders
2e40d92164
Merge pull request #21117 from OlegHahm/pr/feature/enable_dns_in_6lbr_by_default
Configure default DNS resolver in 6lbr example
2025-01-28 20:26:36 +00:00
Mikolai Gütschow
17915037b8
examples/psa_crypto: place input data in RAM 2025-01-28 21:07:45 +01:00
Oleg Hahm
115b8d95ef examples/gnrc_border_router: add DNS option
Introduces two Makefile switches for enabling DNS resolution and
caching.
2025-01-28 19:39:05 +01:00
Kevin "Tristate Tom" Weiss
19cde44b64
Merge pull request #20966 from crasbe/pr/remove_nrf6310
boards/nrf6310: Remove nRF6310 board from RIOT
2025-01-27 10:22:16 +00:00
Marian Buschsieweke
feeb68470f
sys/net/nanocoap: implement observe
This adds the new `nanocoap_server_observe` module that implements the
server side of the CoAP Observe option. It does require cooperation
from the resource handler to work, though.

Co-Authored-By: mguetschow <mikolai.guetschow@tu-dresden.de>
Co-authored-by: benpicco <benpicco@googlemail.com>
2025-01-23 14:25:39 +01:00
Marian Buschsieweke
1c7ba9e055
sys/net/nanocoap: improve separate response handling
This allows sending a separate response with CoAP Options and adds a
helper to detect duplicate requests, so that resource handlers can
repeat their empty ACK on duplicates.
2025-01-23 14:25:02 +01:00
crasbe
68281c6f69 examples/*: remove nRF6310 board 2025-01-22 16:01:42 +01:00
MrKevinWeiss
b5dadde19b
boards/waspmote-pro: Remove after the deprecation period 2025-01-20 20:55:21 +01:00
chrysn
5d7bff869b treewide: Update riot-sys
This pulls in the changes of [144].

[144]: https://github.com/RIOT-OS/rust-riot-wrappers/pull/144
2025-01-13 18:49:18 +01:00
chrysn
ee5e794341 treewide: Update Rust dependencies 2025-01-13 13:33:33 +01:00
chrysn
f1c34a275b treewide: Update riot-wrappers and riot-sys 2025-01-13 13:19:13 +01:00
Fabian Hüßler
b583373e5e examples/subfolders: have two source files in subfolder 2025-01-04 22:25:19 +01:00
Oleg Hahm
e668ac4f65 examples/gnrc_border_router: set DNS resolver
For convenience, it would be nice to have DNS resolution enabled by
default in the examples. Hence, this patch configures a default DNS
resolver on the 6lbr example and propagates its via RDNSS option in RAs
to the nodes.
2025-01-02 13:31:37 +01:00
Marian Buschsieweke
7a738d0e0b
sys/net/nanocoap: fix buffer overflow in separate response handling
When RFC 8974 support (module `nanocoap_token_ext`) is in use, the
request token may be longer than the buffer in the separate response
context is large. This adds a check to not overflow the buffer.

Sadly, this is an API change: Preparing the separate response context
can actually fail, so we need to report this with a return value.

The example application has been adapted to only proceed if the separate
reply context could have been prepared, and rather directly emit a
reset message if the token exceeds the static buffer.

Co-authored-by: benpicco <benpicco@googlemail.com>
2024-12-12 14:28:28 +01:00
Marian Buschsieweke
c507ebff43
examples/pio_blink: add missing include 2024-11-27 11:57:20 +01:00
Benjamin Valentin
83569aa558 suit: move CoAP endpoints to the example
Those endpoints are very specific to the example and not
useful for general use.

Move them to the example's CoAP endpoints.
2024-11-26 19:49:20 +01:00
Mikolai Gütschow
6e61c1b34c
examples/arduino_hello-world: this example needs stdin 2024-11-25 16:17:20 +01:00
Mikolai Gütschow
18c6991d4a
examples/arduino_hello-world: fix buffer overflow 2024-11-25 16:16:48 +01:00
Marian Buschsieweke
2be92b5e55
rust: bump rust-riot-wrappers 2024-11-22 11:14:34 +01:00
Teufelchen
03b6122ada
Merge pull request #20957 from AnnsAnns/examples/readme
Examples: Add proper Table of Contents
2024-11-13 16:59:04 +00:00
AnnsAnn
6f19763ccb examples/readme: Add subfolders example to categories 2024-11-13 15:02:26 +01:00
Marian Buschsieweke
5f661f424a
Merge pull request #20930 from moritzholzer/feature/wakaama_update
Feature/wakaama update on new version
2024-11-12 22:33:06 +00:00
AnnsAnn
cd076d431b examples/readme: switch to tableformat
examples: Remove whitespace to fix CI
2024-11-12 16:38:21 +01:00
AnnsAnn
83e93a5b73 ci: Add tests for examples folder
examples/readme: add missing entries

examples: document examples with no readme
2024-11-12 16:35:26 +01:00
AnnsAnn
10b63585ea examples/readme: Improve clarity and adjust categories
examples/readme: fix SAUL spelling mistake

examples/readme: Link to README.md instead of folder

examples/readme: increase title size

examples/readme: make networking category name a bit clearer

examples/readme: move nimble to own category within BLE

examples/readme: move dtls to own category

examples/readme: move heart rate sensor to nimble category

examples/readme: move arduino sketch to languages

examples/timer_periodic: fix file name issue

examples/readme: change level wording about nanocoap
2024-11-12 16:18:49 +01:00
AnnsAnn
237b71528c examples: Create a proper Table of Content
examples: ToC about all examples

examples: Fix whiteline issues

examples: Improve wording of Rust example

Co-authored-by: Teufelchen <9516484+Teufelchen1@users.noreply.github.com>

examples: Reduce redundant wording

Co-authored-by: Teufelchen <9516484+Teufelchen1@users.noreply.github.com>

examples: remove mention of repository

Co-authored-by: Teufelchen <9516484+Teufelchen1@users.noreply.github.com>

examples: Improve wording of coap example text

Co-authored-by: Teufelchen <9516484+Teufelchen1@users.noreply.github.com>
2024-11-12 16:17:03 +01:00
Marian Buschsieweke
15086a2f55
Merge pull request #20024 from mguetschow/makefile-subfolders
Build system: support for application subfolders
2024-11-12 08:05:47 +00:00
Moritz Holzer
97acd2e562 examples/lwm2m: changes on example application 2024-11-12 08:47:13 +01:00
Benjamin Valentin
f2d5a4cad9 examples/sock_tcp_echo: add TCP echo client / server 2024-11-12 00:22:38 +01:00
Marian Buschsieweke
2b6f65a08a
build_system/xfa: change API to fix alignment
This changes the API of xfa from

    XFA(array_name, prio) type element_name = INITIALIZER;

to

    XFA(type, array_name, prio) element_name = INITIALIZER;

this allows forcing natural alignment of the type, fixing failing tests
on `native64`.
2024-11-07 16:30:01 +01:00
Marian Buschsieweke
68beb52f14
sys/net/nanocoap: add and use coap_get_response_hdr_len()
Before, handlers writing blockwise transfer assumed that the response
header length will match the request header length. This is true for
UDP, but not for TCP: The CoAP over TCP header contains a Len field,
that gets extended for larger messages. Since the reply often is indeed
larger than the request, this is indeed often the case for CoAP over
TCP.

Note: Right now, no CoAP over TCP implementation is upstream. However,
      getting rid of incorrect assumptions now will make life easier
      later on.
2024-11-05 10:46:02 +01:00
Mikolai Gütschow
518f75f687
docs: link to subfolders example in documentation
Co-authored-by: plmorange <pierre1.lemeur@orange.com>
2024-11-04 11:15:28 +01:00
Mikolai Gütschow
66f1f3e093
examples: add example showcasing application subfolders 2024-11-04 11:15:19 +01:00
Teufelchen
b376bec667
Merge pull request #20847 from benpicco/event_assert
sys/event: add assertion that event has a handler
2024-10-25 08:11:51 +00:00
Marian Buschsieweke
ba83fefe3b
Merge pull request #20936 from maribu/drivers/periph_gpio/gpio_read/bool
drivers/periph_gpio: let gpio_read() return bool
2024-10-24 20:43:55 +00:00
benpicco
ae36fa4b37
Merge pull request #20921 from Vjorald/cord-doc
sys/net/app/cord: update doc
2024-10-24 16:59:01 +00:00
Marian Buschsieweke
7d1313b3bf
treewide: update rust-riot-wrappers 2024-10-24 09:57:36 +02:00
Vjorald
d4fb64cfbc cord/doc: Update references to RFC 9176 2024-10-18 23:52:35 +02:00
chrysn
bb3520fff0 treewide: Update Rust dependencies 2024-10-17 16:20:26 +02:00
chrysn
69a89b80ca treewide/rust: cargo fmt 2024-10-02 22:17:08 +02:00
chrysn
505433b8f9
Merge pull request #20838 from chrysn-pull-requests/rust-coap-expose-more
examples/gcoap-rust: Expose more functionality
2024-10-02 11:39:42 +00:00
chrysn
e94337bd60 examples/rust-gcoap: Regenerate Makefile.ci 2024-10-02 13:25:32 +02:00
chrysn
455b19962e examples/rust-gcoap: Use patched try-lock version for armv6 devices 2024-10-02 13:25:32 +02:00
chrysn
5eaa09a872 examples/rust-gcoap: Tighten stack sizes
This still leaves a comfortable 976 byte on the gcoap stack, and 812 on
main -- and makes the application fit on way more boards.
2024-10-02 13:25:32 +02:00