Mbed Cloud Example Project - LPC546xx (Completed Version)
Fork of mbed-cloud-example-lpc546xx by
Diff: Code_Additions.txt
- Revision:
- 8:99d61dd3bfb9
- Parent:
- 6:19cb3d7341c6
- Child:
- 10:f30cd412e968
--- a/Code_Additions.txt Thu Oct 11 14:49:44 2018 +0000 +++ b/Code_Additions.txt Thu Oct 11 15:00:58 2018 +0000 @@ -1,8 +1,5 @@ - -// Pointer declaration for Rate Resource -static MbedCloudClientResource* rate_ptr; - +// To-Do #1 // Setup Mbed Cloud Client Resources @@ -22,10 +19,22 @@ MbedCloudClientResource *blink = mbedClient.create_resource("3201/0/5850", "blink_enable_resource"); blink->methods(M2MMethod::POST); blink->attach_post_callback(blink_enable_callback); - + + +// To-Do #2 + +// Pointer declaration for Rate Resource +static MbedCloudClientResource* rate_ptr; + + + + + +// To-Do #3 + // 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()); @@ -48,5 +57,9 @@ + + +// To-Do #4 + // Call to update button resource count button->set_value(button_count);