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

Ken Bannister notifications at github.com
Tue Mar 26 20:58:10 CET 2019


kb2ma commented on this pull request.



> @@ -60,9 +66,14 @@ int cord_epsim_register(void)
     }
     /* finish, we don't have any payload */
     ssize_t len = gcoap_finish(&pkt, 0, COAP_FORMAT_NONE);
-    if (gcoap_req_send2(buf, len, &remote, NULL) == 0) {
+    if (gcoap_req_send2(buf, len, rd_ep, _req_handler) == 0) {
         return CORD_EPSIM_ERROR;
     }
 
     return CORD_EPSIM_OK;

Yes, I agree. The return value needs to distinguish when the module truly was busy, as at the top of the register function.

-- 
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_r269288974
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190326/ff9b6f8c/attachment-0001.html>


More information about the notifications mailing list