[riot-notifications] [RIOT-OS/RIOT] doc/memos: RDM Runtime Configuration Architecture (#10622)

José Alamos notifications at github.com
Tue Jan 8 09:31:13 CET 2019


jia200x commented on this pull request.



> +        else if (!strcmp("threshold", argv[0])) {
+            /* Copy the value of `is_enabled` to `val` so the user can read it */
+            memcpy(val, &threshold, sizeof(int));
+        }
+    }
+    /* ... */
+    return NULL;
+}
+/* Dummy implementation of `set` handler.
+   For both configuration parameters, it sets the value from `val`.
+*/
+char *my_set_handler(int argc, char **argv, char *val)
+{
+    if (argc) {
+        if (!strcmp("is_enabled", argv[0])) {
+            /* Set the value of `is_enabled` from `val` */

sure!

-- 
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/10622#discussion_r245910340
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190108/5dbdf26b/attachment.html>


More information about the notifications mailing list