ST
/
example-IDW01M1-mbed-Cloud-connect
Generic example for any board with IDMW0xM1 shield
Diff: main.cpp
- Revision:
- 31:11e00e0c285d
- Parent:
- 21:1e89d014263d
- Child:
- 40:17cd01e5f1fa
--- a/main.cpp Thu Mar 08 13:50:59 2018 +0100 +++ b/main.cpp Wed Mar 14 13:02:03 2018 +0100 @@ -189,13 +189,13 @@ // Mbed Cloud Client resource setup MbedCloudClientResource *button = mbedClient.create_resource("3200/0/5501", "button_resource"); - button->set_value("0"); + button->set_value((char*)"0"); button->methods(M2MMethod::GET); button->observable(true); button->attach_notification_callback(button_notification_status_callback); MbedCloudClientResource *pattern = mbedClient.create_resource("3201/0/5853", "pattern_resource"); - pattern->set_value("500:500:500:500"); + pattern->set_value((char*)"500:500:500:500"); pattern->methods(M2MMethod::GET | M2MMethod::PUT); pattern->attach_put_callback(pattern_updated); pattern_ptr = pattern;