Simple receiver application for SX127x radio.
Dependencies: MbedJSONValue SX127x sx12xx_hal
Diff: main.cpp
- Revision:
- 4:fed69c9a3bbf
- Parent:
- 3:cfbb4ffd0cbd
--- 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());