Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys/rest_client: a multi-transport rest-client for RIOT #17785

Draft
wants to merge 55 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
0bef732
[treewide] lora: use int16_t for RSSI value
jia200x Jan 10, 2022
4b3d699
drivers/atwinc15x0: adapt NETOPT_RSSI to int16_t
jia200x Jan 10, 2022
5e99374
Merge pull request #17527 from jia200x/backport/2022.01/pr/lora/fix_r…
aabadie Jan 18, 2022
b8994e9
tests/pkg_relic: increase stacksize
fjmolinas Jan 18, 2022
6a8dedf
Merge pull request #17529 from fjmolinas/backport/2022.01/pr_test_pkg…
fjmolinas Jan 18, 2022
69198a4
drivers/rtt_rtc: select rtc_utils
fjmolinas Jan 18, 2022
79794fd
Merge pull request #17532 from fjmolinas/backport/2022.01/pr_rtt_rtc_…
aabadie Jan 19, 2022
c13b529
tests/pkg_edhoc: handle multiple interfaces
fjmolinas Jan 18, 2022
33c360c
Merge pull request #17549 from fjmolinas/backport/2022.01/pr_edhoc_te…
aabadie Jan 21, 2022
f052a9b
sys/ztimer64/util.c: fix ztimer64_set_timeout_flag
fjmolinas Jan 24, 2022
ec3cc22
Merge pull request #17562 from fjmolinas/backport/2022.01/pr_ztimer64…
emmanuelsearch Jan 25, 2022
336fd75
boards/nucleo-f767zi: Fix adc pin config in periph_conf.h
ststrell Jan 24, 2022
5db69b4
Merge pull request #17570 from maribu/backport/2022.01/nucleo_f767zi_…
aabadie Jan 25, 2022
5ffdabc
release-notes.txt: add 2022.01 release notes
emmanuelsearch Jan 25, 2022
9640e20
Merge pull request #17585 from emmanuelsearch/backport/2022.01/pr-rel…
bergzand Jan 28, 2022
ba4857a
VERSION: add 2022.01 version file
emmanuelsearch Jan 28, 2022
5265213
Merge pull request #17587 from emmanuelsearch/2022.01-branch
kaspar030 Jan 28, 2022
d33e144
pkg/lwip: replace boolean with simple expression
HendrikVE Dec 21, 2021
12ccc0a
pkg/lwip: rename offset to recvd
HendrikVE Dec 21, 2021
9d782bc
pkg/lwip: use intermediate variable instead of max_len
HendrikVE Dec 21, 2021
9395791
pkg/lwip: give lines some more space
HendrikVE Dec 22, 2021
9328e6b
pkg/lwip: remove redundant pointer
HendrikVE Dec 22, 2021
4743823
pkg/lwip: add peek to sock_ip
HendrikVE Dec 27, 2021
50d91de
pkg/lwip: add peek to sock_udp
HendrikVE Dec 27, 2021
cea7731
pkg/lwip: add peek to sock_tcp
HendrikVE Dec 27, 2021
98b5e70
sys/posix: add flag definitions
HendrikVE Feb 3, 2021
8f7c757
sys/posix/socket: implement MSG_PEEK for recvfrom
HendrikVE Feb 3, 2021
371183f
pkg/lwip: add missing initialization for async_cb
HendrikVE Dec 31, 2021
92f569c
sys/posix: add module posix_netdb
HendrikVE Jun 16, 2021
1e83372
tests/posix_netdb: add test
HendrikVE Jan 7, 2022
07f498a
sys/net/application_layer/sock_dns: add pseudomodule auto_init_sock_dns
HendrikVE Jan 1, 2022
845b58a
pkg/wolfmqtt: add wolfmqtt
HendrikVE Jan 14, 2021
28f71a5
examples/wolfmqtt_mqttclient: add example from wolfmqtt pkg
HendrikVE Jan 14, 2021
5e2b332
examples/wolfmqtt_snclient: add example from wolfmqtt pkg
HendrikVE Jan 29, 2021
538e202
examples/wolfmqtt_nbclient: add example from wolfmqtt pkg
HendrikVE Feb 5, 2021
f410a7f
examples/wolfmqtt_multithread: add example from wolfmqtt pkg
HendrikVE Feb 5, 2021
9512727
pkg/wolfmqtt: update package from v1.7 to v1.12.0
HendrikVE Apr 17, 2022
6ac4b49
sys/net/ipv4: ipv4_addr_t pointer should be const
HendrikVE Mar 5, 2022
efae541
pkg/tinydtls: rename condition WITH_RIOT_GNRC to WITH_RIOT
HendrikVE Mar 5, 2022
4288e4b
pkg/tinydtls: remove unnecessary void casts
HendrikVE Mar 5, 2022
eade2b7
pkg/tinydtls: add IPv4 support
HendrikVE Mar 5, 2022
2471588
sys/net/sock_util: fix compilation for IPv4-only mode
HendrikVE Mar 6, 2022
ae425db
sys/net/netutils: add missing string.h include
HendrikVE Mar 6, 2022
862094b
sys/net/netutils: add netutils_get_ipv4()
HendrikVE Mar 6, 2022
9f80903
examples/gcoap: add IPv4 support
HendrikVE Mar 5, 2022
ec54d85
examples/gcoap_dtls: add IPv4 support
HendrikVE Mar 5, 2022
c412e4d
wolfMQTT
HendrikVE Apr 30, 2022
c36c26d
fix wolfmqtt pkg
HendrikVE May 1, 2022
f7e4845
initial rest_client
HendrikVE Nov 2, 2021
ffbedd4
sys/rest_client: add CoAP and CoAPs transport
HendrikVE Apr 30, 2022
0c07b0a
sys/rest_client: add MQTT and MQTT-SN transport
HendrikVE Apr 30, 2022
4a78290
pkg/lwip: make LWIP_NETDEV_STACKSIZE configurable
HendrikVE Apr 30, 2022
0dd366f
sys/net/coap: add kafka media types
HendrikVE Apr 30, 2022
3e6fa50
examples/rest_client_django: add new application
HendrikVE Apr 30, 2022
2b14bbf
examples/rest_client_kafka: add new application
HendrikVE Apr 30, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
pkg/tinydtls: remove unnecessary void casts
  • Loading branch information
HendrikVE committed Apr 17, 2022
commit 4288e4b51f980145fc150795a1c5cd08e1910071
12 changes: 3 additions & 9 deletions pkg/tinydtls/contrib/sock_dtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*
* @author Aiman Ismail <muhammadaimanbin.ismail@haw-hamburg.de>
* @author Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
* @author Hendrik van Essen <hendrik.ve@fu-berlin.de>
*/

#include <assert.h>
Expand Down Expand Up @@ -89,10 +90,8 @@ typedef struct ecdsa_key_assignment {
static ecdsa_key_assignment_t _ecdsa_keys[CONFIG_DTLS_CREDENTIALS_MAX];
#endif

static int _read(struct dtls_context_t *ctx, session_t *session, uint8_t *buf,
size_t len)
static int _read(struct dtls_context_t *ctx, session_t *session, uint8_t *buf, size_t len)
{
(void)session;
sock_dtls_t *sock = dtls_get_app_data(ctx);

DEBUG("sock_dtls: decrypted message arrived\n");
Expand All @@ -109,8 +108,7 @@ static int _read(struct dtls_context_t *ctx, session_t *session, uint8_t *buf,
return len;
}

static int _write(struct dtls_context_t *ctx, session_t *session, uint8_t *buf,
size_t len)
static int _write(struct dtls_context_t *ctx, session_t *session, uint8_t *buf, size_t len)
{
sock_dtls_t *sock = (sock_dtls_t *)dtls_get_app_data(ctx);
sock_udp_ep_t remote;
Expand All @@ -128,9 +126,6 @@ static int _write(struct dtls_context_t *ctx, session_t *session, uint8_t *buf,
static int _event(struct dtls_context_t *ctx, session_t *session,
dtls_alert_level_t level, unsigned short code)
{
(void)level;
(void)session;

sock_dtls_t *sock = dtls_get_app_data(ctx);
msg_t msg = { .type = code, .content.ptr = session };
if (IS_ACTIVE(ENABLE_DEBUG)) {
Expand Down Expand Up @@ -308,7 +303,6 @@ static int _get_psk_info(struct dtls_context_t *ctx, const session_t *session,
static int _get_ecdsa_key(struct dtls_context_t *ctx, const session_t *session,
const dtls_ecdsa_key_t **result)
{
(void)session;
int ret = CREDMAN_ERROR;
sock_dtls_t *sock = (sock_dtls_t *)dtls_get_app_data(ctx);
sock_udp_ep_t ep;
Expand Down