Send file data through D7A Action Protocol demo.
Dependencies: modem_ref_helper
Diff: sensor.cpp
- Revision:
- 6:d4512d8f5dff
- Parent:
- 5:4da1ea72e7b4
diff -r 4da1ea72e7b4 -r d4512d8f5dff sensor.cpp --- a/sensor.cpp Thu May 18 13:48:39 2017 +0000 +++ b/sensor.cpp Thu Sep 21 10:29:37 2017 +0000 @@ -10,9 +10,9 @@ DigitalOut g_light_en_l(SENSOR_LIGHT_EN); -uint8_t sensor_get_light(void) +light_value_t sensor_get_light(void) { - uint8_t light_level = 0; + light_value_t light_level = 0; // Enable light sensor g_light_en_l = 0; @@ -20,7 +20,7 @@ Thread::wait(10); // Read light value - light_level = (uint8_t)(100*g_light_meas); + light_level = (light_value_t)(1000*g_light_meas); // Disable light sensor g_light_en_l = 1;