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.
Dependencies: MbedJSONValue SX127x sx12xx_hal
Revision 4:fed69c9a3bbf, committed 2019-10-16
- Comitter:
- corymast
- Date:
- Wed Oct 16 22:36:06 2019 +0000
- Parent:
- 3:cfbb4ffd0cbd
- Commit message:
- Added functionality for parsing sensor data.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Sep 06 23:18:09 2019 +0000 +++ b/main.cpp Wed Oct 16 22:36:06 2019 +0000 @@ -49,6 +49,18 @@ { printf("btn_timer: %f\r\n", message["btn_timer"].get<double>()); } + if(message.hasMember("light_val")) + { + printf("light_val: %f\r\n", message["light_val"].get<double>()); + } + if(message.hasMember("light_resistance")) + { + printf("light_resistance: %f\r\n", message["light_resistance"].get<double>()); + } + if(message.hasMember("temperature")) + { + printf("temperature: %f\r\n", message["temperature"].get<double>()); + } if(message.hasMember("my_str")) { printf("my_str: %s\r\n", message["my_str"].get<string>().c_str());