[riot-notifications] [RIOT-OS/RIOT] examples/cord_epsim: change default RD server addr handling (#10464)

Hauke Petersen notifications at github.com
Tue Mar 26 15:51:39 CET 2019


haukepetersen commented on this pull request.



> -
-    /* run the shell */
-    char line_buf[SHELL_DEFAULT_BUFSIZE];
-    shell_run(NULL, line_buf, SHELL_DEFAULT_BUFSIZE);
+    puts("epsim configuration:");
+    printf("         ep: %s\n", cord_common_get_ep());
+    printf("         lt: %is\n", (int)CORD_LT);
+    printf(" RD address: [%s]:%u\n\n", RD_ADDR, (unsigned)RD_PORT);
+
+    xtimer_sleep(STARTUP_DELAY);
+
+    while (1) {
+        printf("updating registration with RD [%s]:%u\n", RD_ADDR,
+               (unsigned)RD_PORT);
+        int res = cord_epsim_register(&rd_ep);
+        if (res == CORD_EPSIM_BUSY) {

did not change it :-) So no need to tough this line, right?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10464#discussion_r269144429
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190326/3c9e94a2/attachment.html>


More information about the notifications mailing list