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:
- 6:19cb3d7341c6
- Parent:
- 5:e521ea1f4c22
- Child:
- 8:99d61dd3bfb9
diff -r e521ea1f4c22 -r 19cb3d7341c6 Code_Additions.txt
--- a/Code_Additions.txt Thu Oct 11 14:29:07 2018 +0000
+++ b/Code_Additions.txt Thu Oct 11 14:47:04 2018 +0000
@@ -1,9 +1,11 @@
+
+
+// Pointer declaration for Rate Resource
+static MbedCloudClientResource* rate_ptr;
-static MbedCloudClientResource* rate_ptr;
-
-// Mbed Cloud Client resource setup
+// Setup Mbed Cloud Client Resources
MbedCloudClientResource *button = mbedClient.create_resource("3200/0/5501", "button_resource");
button->set_value("0");
button->methods(M2MMethod::GET);
@@ -24,7 +26,7 @@
-
+// Resource Callback Functions
void blink_rate_updated(const char *) {
printf("PUT received, Storing LED Blink Rate: %s (ms)\r\n", rate_ptr->get_value().c_str());
}
@@ -46,4 +48,5 @@
+// Call to update button resource count
button->set_value(button_count);
