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.
Revision 11:0bddeb20bafc, committed 2018-12-16
- Comitter:
- screamer
- Date:
- Sun Dec 16 13:29:40 2018 +0000
- Parent:
- 10:f3ec71d2ec83
- Child:
- 12:d3415dbdb970
- Commit message:
- Cosmetic changes to main application
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Dec 16 12:30:37 2018 +0000
+++ b/main.cpp Sun Dec 16 13:29:40 2018 +0000
@@ -66,7 +66,7 @@
* @param newValue Updated value for the resource
*/
void led_put_callback(MbedCloudClientResource *resource, m2m::String newValue) {
- printf("PUT received, new value: %s\n", newValue.c_str());
+ printf("PUT received. New value: %s\n", newValue.c_str());
led = atoi(newValue.c_str());
}
@@ -78,7 +78,7 @@
* @param size Size of the body
*/
void led_post_callback(MbedCloudClientResource *resource, const uint8_t *buffer, uint16_t size) {
- printf("POST received. Going to blink LED pattern: %s\n", res_led->get_value().c_str());
+ printf("POST received. Payload: %s\n", res_led->get_value().c_str());
led = atoi(res_led->get_value().c_str());
}
@@ -207,7 +207,7 @@
res_voltage->methods(M2MMethod::GET);
res_voltage->observable(true);
- printf("Initialized Pelion Client. Registering...\n");
+ printf("Initialized Pelion Device Management Client. Registering...\n");
// Callback that fires when registering is complete
client.on_registered(®istered);