I have the reference design template app working on the SparkFun Thing Plus nRF9160 ( which was some fun, but I digress). The device connects to Golioth, I can see logs and perform RPCs from the console, but I don’t see the LOOP_DELAY_S setting
Here’s the device logs, I don’t see any errors from app_settings. Any ideas what I may be doing wrong?
-r
*** Booting Zephyr OS build v3.3.99-ncs1-1 ***
[00:00:00.445,220] <inf> battery: Initializing battery measurement
[00:00:00.445,251] <dbg> battery: divider_setup: ADC setup for AIN7 complete
[00:00:00.445,251] <inf> golioth_system: Initializing
[00:00:00.451,843] <inf> fs_nvs: 2 Sectors of 4096 bytes
[00:00:00.451,843] <inf> fs_nvs: alloc wra: 0, fb8
[00:00:00.451,873] <inf> fs_nvs: data wra: 0, 6c
[00:00:00.452,941] <inf> golioth_rd_template: Firmware version: 1.0.0
[00:00:00.453,765] <inf> golioth_rd_template: Modem firmware version: mfw_nrf9160_1.2.3
[00:00:00.453,979] <inf> app_settings: Register settings callback OK: 0
[00:00:00.454,010] <inf> golioth_rd_template: Connecting to LTE, this may take some time...
[00:00:00.492,645] <dbg> battery: battery_sample: raw 5948 ~ 1306 mV => 2612 mV
[00:00:00.492,797] <inf> battery: Battery measurement: voltage=2.612 V, level=0%
[00:00:00.492,828] <inf> app_work: Sending hello! 0
[00:00:00.493,377] <wrn> app_work: Failed to send hello!
[00:00:00.493,438] <dbg> app_work: app_work_sensor_read: {"counter":0}
[00:00:00.494,079] <err> app_work: Failed to send sensor data to Golioth: -115
[00:00:59.427,917] <inf> golioth_rd_template: Network: Searching
[00:01:00.494,873] <dbg> battery: battery_sample: raw 9529 ~ 2093 mV => 4186 mV
[00:01:00.495,025] <inf> battery: Battery measurement: voltage=4.186 V, level=100%
[00:01:00.495,056] <inf> app_work: Sending hello! 1
[00:01:00.495,605] <wrn> app_work: Failed to send hello!
[00:01:00.495,666] <dbg> app_work: app_work_sensor_read: {"counter":1}
[00:01:00.496,276] <err> app_work: Failed to send sensor data to Golioth: -115
[00:01:00.498,992] <inf> golioth_rd_template: Network: Unknown
[00:01:04.048,034] <inf> golioth_rd_template: Network: Searching
[00:02:00.497,070] <dbg> battery: battery_sample: raw 9528 ~ 2093 mV => 4186 mV
[00:02:00.497,222] <inf> battery: Battery measurement: voltage=4.186 V, level=100%
[00:02:00.497,253] <inf> app_work: Sending hello! 2
[00:02:00.497,802] <wrn> app_work: Failed to send hello!
[00:02:00.497,863] <dbg> app_work: app_work_sensor_read: {"counter":2}
[00:02:00.498,474] <err> app_work: Failed to send sensor data to Golioth: -115
[00:02:11.507,263] <inf> golioth_rd_template: Network: Registered (roaming)
[00:02:11.507,598] <inf> golioth_system: Starting connect
[00:02:12.790,405] <inf> golioth_rd_template: Registering observations with Golioth
[00:02:12.794,097] <inf> golioth_system: Client connected!
[00:02:13.195,709] <dbg> app_dfu: golioth_desired_update: Desired
a0 |.
[00:02:13.195,739] <inf> app_dfu: No release rolled out yet
[00:02:13.275,939] <dbg> app_state: app_state_desired_handler: desired
7b 22 65 78 61 6d 70 6c 65 5f 69 6e 74 30 22 3a |{"exampl e_int0":
2d 31 2c 22 65 78 61 6d 70 6c 65 5f 69 6e 74 31 |-1,"exam ple_int1
22 3a 2d 31 7d |":-1}
[00:02:13.276,031] <dbg> app_state: app_state_desired_handler: No change requested for example_int0
[00:02:13.276,031] <dbg> app_state: app_state_desired_handler: No change requested for example_int1
[00:02:13.276,489] <dbg> app_state: async_handler: State successfully set
[00:03:00.499,267] <dbg> battery: battery_sample: raw 9526 ~ 2093 mV => 4186 mV
[00:03:00.499,420] <inf> battery: Battery measurement: voltage=4.186 V, level=100%
[00:03:00.499,542] <dbg> battery: stream_battery_data: {"batt_v":4.186,"batt_lvl":100.00}
[00:03:00.949,066] <inf> app_work: Sending hello! 3
[00:03:00.950,286] <dbg> app_work: app_work_sensor_read: {"counter":3}
[00:04:00.951,690] <dbg> battery: battery_sample: raw 9530 ~ 2093 mV => 4186 mV
[00:04:00.951,843] <inf> battery: Battery measurement: voltage=4.186 V, level=100%
[00:04:00.951,965] <dbg> battery: stream_battery_data: {"batt_v":4.186,"batt_lvl":100.00}
[00:04:01.307,098] <inf> app_work: Sending hello! 4
[00:04:01.308,380] <dbg> app_work: app_work_sensor_read: {"counter":4}