Send file data through D7A Action Protocol demo.
Dependencies: modem_ref_helper
Diff: main.cpp
- Revision:
- 11:a3308870afac
- Parent:
- 10:daa4b52991b7
- Child:
- 12:e0dba9c55dff
--- a/main.cpp Thu Sep 20 12:37:37 2018 +0000 +++ b/main.cpp Thu Oct 11 09:54:18 2018 +0000 @@ -194,10 +194,7 @@ uint8_t id = modem_get_id(my_main_callback); DPRINT("Register Files\n"); - - // HOST Revision is a local file. Uses D7AActP Notification. - modem_update_file(FID_HOST_REV, (alp_file_header_t*)&h_rev, (uint8_t*)&f_rev); - + // Create report file on modem. modem_update_file(FID_SENSOR_LIGHT, (alp_file_header_t*)&h_sensor_light, NULL); @@ -218,8 +215,8 @@ modem_ready.wait(); PRINT("Notify FW Version\n"); - modem_notify_file(FID_HOST_REV, 0, SIZE_HOST_REV, id); - modem_ready.wait(); + uint8_t default_root_key[16] = DEFAULT_ROOT_KEY; + modem_notify_host_rev(&f_rev, &h_rev, default_root_key); modem_free_id(id);