[riot-notifications] [RIOT-OS/RIOT] wolfSSL pkg addition with examples (#10308)

Aiman Ismail notifications at github.com
Tue Sep 3 19:59:34 CEST 2019

pokgak commented on this pull request.

> +        }
+        return 32;   /* length of key in octets or 0 for error */
+    }
+#define APP_DTLS_BUF_SIZE 64
+int dtls_client(int argc, char **argv)
+    int ret = 0;
+    char buf[APP_DTLS_BUF_SIZE] = "Hello from DTLS client!";
+    int iface;
+    char *addr_str;
+    int connect_timeout = 0;
+    const int max_connect_timeouts = 5;

@MichelRottleuthner did you increase the timeout with `wolfSSL_set_timeout_init()` when testing this? IIRC this problem is due to the server taking too long to respond. Increasing `max_connect_timeouts` will have the same effect as increasing the timeout too but I prefer increasing the timeout here to show that we are giving the server longer to respond.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190903/2bcb6f36/attachment.htm>

More information about the notifications mailing list