1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/pkg_tinydtls_sock_async
Marian Buschsieweke d2a3ff3d83
boards/{bluepill*,blackpill*}: rename and improve doc
- renamed:
    - `bluepill` --> `bluepill-stm32f103c8`
    - `bluepill-128kib` --> `bluepill-stm32f103cb`
    - `blackpill` --> `blackpill-stm32f103c8`
    - `blackpill-128kib` --> `blackpill-stm32f103cb`
- doc:
    - added link to corresponding hardware page on the STM32-base
      project
    - added picture
2023-01-02 16:23:10 +01:00
..
dtls-client.c tests: add missing includes 2022-02-28 14:53:08 +01:00
dtls-server.c tests/pkg_tinydtls_sock_async: add missing ID to server PSK 2021-04-01 09:47:39 +02:00
main.c tests: provide test for tinydtls with sock_async 2020-06-21 23:08:41 +02:00
Makefile examples,tests: replace deprecated module names by new names 2022-09-16 13:15:46 +02:00
Makefile.ci boards/{bluepill*,blackpill*}: rename and improve doc 2023-01-02 16:23:10 +01:00
README.md tests: provide test for tinydtls with sock_async 2020-06-21 23:08:41 +02:00
tinydtls_common.h tests: provide test for tinydtls with sock_async 2020-06-21 23:08:41 +02:00
tinydtls_keys.h tests: provide test for tinydtls with sock_async 2020-06-21 23:08:41 +02:00

DTLS sock async test application

This is a test application for DTLS sock sock_dtls_t with sock_async.

Testing using RIOT native

For testing, we can use two RIOT native RIOT instances. For that first we need to prepare the network interfaces:

$ ./../../dist/tools/tapsetup/tapsetup --create 2

For the server instance:

$ PORT=tap0 make all term
[...]
> dtlss start
ifconfig

For the client:

$ PORT=tap1 make all term
[...]
> dtlsc <server ip address> "DATA to send"

Debug logs

To enable debug logs uncomment CFLAGS += -DCONFIG_DTLS_DEBUG in the Makefile. Tinydtls supports setting the log level. See Makefile for more info.

Configs and constraints

DTLS sock acts as a wrapper for the underlying DTLS stack and as such, the constraints that applies specifically to the stack are also applied here. For tinydtls, please refer to dtls-echo README.