Complete sensor demo.
Dependencies: modem_ref_helper CRC X_NUCLEO_IKS01A1 DebouncedInterrupt
Diff: main.cpp
- Revision:
- 12:7a56e0705c9d
- Parent:
- 11:9683d014dece
- Child:
- 14:8fd5405f7ab2
--- a/main.cpp Thu Sep 20 14:53:07 2018 +0000 +++ b/main.cpp Wed Oct 10 16:50:00 2018 +0000 @@ -417,7 +417,6 @@ uint8_t main_id = modem_get_id(my_main_callback); PRINT("Register Files\n"); - modem_update_file(FID_HOST_REV, &h_rev, (uint8_t*)&f_rev); modem_update_file(FID_ALARM, &h_alarm, (uint8_t*)&f_alarm); // Configure URC: LQUAL on report file notification every 10 reports @@ -442,8 +441,8 @@ modem_ready[main_id].wait(); PRINT("Notify FW Version\n"); - modem_notify_file(FID_HOST_REV, 0, SIZE_HOST_REV, main_id); - modem_ready[main_id].wait(); + uint8_t default_root_key[16] = DEFAULT_ROOT_KEY; + modem_notify_host_rev(&f_rev, &h_rev, default_root_key); // Start file modified thread Thread th_file_modified(osPriorityNormal, 1024, NULL);