Buttons and shell commands

Serial Modem Host Applications

tags
Serial Modem Host Applications

While main is idle between synchronizations, the DK buttons act on the cloud connection:

  • Button 1 starts a cloud synchronization right away instead of waiting for the next interval.
  • Button 2 triggers a Memfault SDK heartbeat and posts the pending remote debugging data to nRF Cloud.

A press while a synchronization is running, or while the cloud is not connected, is logged and ignored. On the nRF54L15 DK and nRF54LM20 DK, button 1 is BUTTON0 and button 2 is BUTTON1.

The console also offers these shell commands:

Command Action
button 1 / button 2 Simulate a press of the matching button.
network connect / network disconnect Bring the cellular link up or down.
fota poll / fota cancel Check for a firmware update now, or cancel an ongoing download.
location search / location cancel Start a Wi-Fi location search now, or cancel an ongoing one. Only available with the location overlay.
at "<command>" Send an AT command to the modem and print the response.