Christos Vasilakis
/
pelion-example-common-DISCO_F413ZH
pelion-example-common-DISCO_F413ZH
Diff: main.cpp
- Revision:
- 8:579904ba4ba1
- Parent:
- 7:24d524c2bdcc
- Child:
- 10:f3ec71d2ec83
--- a/main.cpp Sun Dec 16 12:02:30 2018 +0000 +++ b/main.cpp Sun Dec 16 12:21:25 2018 +0000 @@ -125,7 +125,7 @@ int main(void) { - printf("Starting Simple Pelion Device Management Client example\n"); + printf("\nStarting Simple Pelion Device Management Client example\n"); // If the User button is pressed ons start, then format storage. DigitalIn *user_button = new DigitalIn(BUTTON1); @@ -149,6 +149,8 @@ if (storage_status != 0) { printf("ERROR: Failed to reformat the storage (%d).\n", storage_status); } + } else { + printf("You can hold the user button during boot to format the storage and change the device identity.\n"); } // Connect to the internet (DHCP is expected to be on) @@ -172,7 +174,7 @@ printf("Connected to the network successfully. IP address: %s\n", net->get_ip_address()); - printf("Initializing Pelion Device Management Client..."); + printf("Initializing Pelion Device Management Client...\n"); // SimpleMbedCloudClient handles registering over LwM2M to Pelion DM SimpleMbedCloudClient client(net, bd, &fs);