[riot-notifications] [RIOT-OS/RIOT] doc/rdm: RDM on a common api for testing (#10624)

MrKevinWeiss notifications at github.com
Wed Feb 6 10:56:04 CET 2019

MrKevinWeiss commented on this pull request.

> +This example shows how large amounts of data can be sent with one call.
+It shows multiple data responses.
+It also shows a [cmd] field that doesn't exactly match the api call but
+gives enough information to be able to reproduce.
+ ```c
+ int cmd_get_lots_of_data(int argc, char **argv)
+ {
+     // Do parsing
+     ...
+     printf("{\"cmd\": \"get_data_api_command(get_data_arg=[0 to %i])\"}\n",
+            amount_of_api_calls)
+     printf("Getting several values for the api command\n")
+     for (i = 0; i < amount_of_api_calls; i++) {
+         data = get_data_api_command(i);
+         prqintf("{\"data\": 0x%X}\n", data);


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/20190206/cd5aeba9/attachment-0001.html>

More information about the notifications mailing list