-
My goal is:
Prevent reboot loop if gcp config is set with incomplete values. -
My actions are:
Set onlygcp.enable
totrue
. -
The result I see is:
[Jul 15 15:12:02.747] mgos_gcp.c:349 gcp.project, region, registry and key are required
[Jul 15 15:12:02.769] mgos_deps_init.c:132 gcp init failed
[Jul 15 15:12:02.769] mgos_freertos.c:204 MGOS init failed: -32
[Jul 15 15:12:03.280] mgos_vfs.c:990 Unmounting filesystems
[Jul 15 15:12:03.280] mgos_vfs.c:959 /: forced unmount with 1 refs
[Jul 15 15:12:03.288] mgos_system.c:42 Restarting
- My expectation & question is:
Can I catch init errors to prevent reboot loops? If the device is also connected to mDash, this error prevents a fallback connection to fix any configuration.