Send file data through D7A Action Protocol demo.
Dependencies: modem_ref_helper
Diff: files.cpp
- Revision:
- 6:d4512d8f5dff
- Parent:
- 0:3058da317f01
- Child:
- 10:daa4b52991b7
--- a/files.cpp Thu May 18 13:48:39 2017 +0000 +++ b/files.cpp Thu Sep 21 10:29:37 2017 +0000 @@ -30,8 +30,8 @@ .fw_version.minor = 0, .fw_version.patch = 0, .fw_version.hash = 0x00000000, - /// "file-system" signature - .fs_crc = 0x00000000 + /// Not used + .cup_max_size = 0x00000000 }; alp_file_header_t h_sensor_config = { @@ -47,9 +47,9 @@ .report_type = REPORT_ON_DIFFERENCE, // Type of report asked .read_period = 5000, // Measure period (ms) .max_period = 300, // Maximum time between reports (s) - .max_diff = 2, // Maximum difference allowed between two reported values - .threshold_high = 90, // High threshold value triggering a report - .threshold_low = 10, // Low threshold value triggering a report + .max_diff = 20, // Maximum difference allowed between two reported values + .threshold_high = 900, // High threshold value triggering a report + .threshold_low = 100, // Low threshold value triggering a report }; alp_file_header_t h_sensor_light = { @@ -57,6 +57,6 @@ .prop = FS_VOLATILE_NOTIF, .afid = FID_ACTP_RPT_FULL, .ifid = IFID_REPORT, - .size = HAL_U32_BYTE_SWAP((uint32_t)sizeof(uint8_t)), - .alloc= HAL_U32_BYTE_SWAP((uint32_t)sizeof(uint8_t)) + .size = HAL_U32_BYTE_SWAP((uint32_t)sizeof(light_value_t)), + .alloc= HAL_U32_BYTE_SWAP((uint32_t)sizeof(light_value_t)) }; \ No newline at end of file