The application follows the shared Architecture. See Modules per application for what each one does in this application.
| Module | Role |
|---|---|
| Main | Starts a sync when the cloud connects and every CONFIG_APP_SYNC_INTERVAL seconds after that. Each sync requests a location fix. |
| Network | Configures the Serial Modem at boot (AT+CEREG=5, LTE-M, NB-IoT and GNSS system mode, PSM), brings LTE up with AT+CFUN=1, and reports the registration state from +CEREG. |
| Cloud | Onboards the device with AT#XNRFPROV, then connects the Serial Modem's nRF Cloud client. |
| Location | Requests a cellular fix, and runs GNSS if that fails. |
| Modem AT | Owns the UART, serializes AT commands from the modules and the shell, and routes URCs to the modules. |