Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-cloud-example-lpc546xx by
Diff: Code_Additions.txt
- Revision:
- 9:5836af0b0a9c
- Parent:
- 8:99d61dd3bfb9
--- a/Code_Additions.txt Thu Oct 11 15:00:58 2018 +0000
+++ b/Code_Additions.txt Thu Oct 11 18:28:40 2018 +0000
@@ -1,22 +1,21 @@
// To-Do #1
-
// Setup Mbed Cloud Client Resources
-MbedCloudClientResource *button = mbedClient.create_resource("3200/0/5501", "button_resource");
+MbedCloudClientResource *button = mbedClient.create_resource("3200/0/5501", "button_resource"); // Digital Input / Instance / Counter
button->set_value("0");
button->methods(M2MMethod::GET);
button->observable(true);
button->attach_notification_callback(button_callback);
-MbedCloudClientResource *rate = mbedClient.create_resource("3201/0/5853", "blink_rate_resource");
+MbedCloudClientResource *rate = mbedClient.create_resource("3201/0/5521", "blink_rate_resource"); // Digital Output / Instance / Delay Duration
rate->set_value("500");
rate->methods(M2MMethod::GET | M2MMethod::PUT);
rate->observable(false);
rate->attach_put_callback(blink_rate_updated);
rate_ptr = rate;
-MbedCloudClientResource *blink = mbedClient.create_resource("3201/0/5850", "blink_enable_resource");
+MbedCloudClientResource *blink = mbedClient.create_resource("3201/0/5823", "blink_enable_resource"); // Digital Output / Instance / Event ID
blink->methods(M2MMethod::POST);
blink->attach_post_callback(blink_enable_callback);
@@ -24,6 +23,7 @@
+
// To-Do #2
// Pointer declaration for Rate Resource
