[riot-notifications] [RIOT-OS/RIOT] sys: Add RIOT Registry implementation (#10799)

danpetry notifications at github.com
Wed Feb 20 14:07:25 CET 2019


danpetry commented on this pull request.



> +#include "dummy/include/registry_store_dummy.h"
+registry_dummy_t registry_dummy_storage;
+#endif /* MODULE_REGISTRY_STORE_DUMMY */
+
+/* Size of the test_bytes configuration parameter */
+#ifndef BYTES_LENGTH
+#define BYTES_LENGTH    16
+#endif
+
+/* These are the 'configuration parameters' */
+int64_t test_opt1 = 0;
+int8_t test_opt2 = 1;
+unsigned char test_bytes[BYTES_LENGTH] = {0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
+                                          0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
+                                          0xAA, 0xAA, 0xAA, 0xAA};
+

I guess this is chosen because base64 makes the encoded data less likely to be modified in transit? i.e. through the configuration management system (serial/lwm2m/etc)?

-- 
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/10799#discussion_r258472211
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190220/32290161/attachment.html>


More information about the notifications mailing list