SiWx91x Calendar AT Commands#

This section describes AT commands for controlling the calendar peripheral on the SiWx91x device. These commands allow you to configure the calendar for time-based operations.

Commands#

cal-start#

Configures the alarm for the Calendar peripheral.

Command Format#

at+cal-start=<time_ms>

Related SDK APIs#

Pre-conditions#

None

Parameters#

time_ms#

The time duration in milliseconds after which the alarm should be triggered.

Response#

  • OK in case of success

  • ERROR <error code> in case of failure. Possible error codes are the same as those returned by the various APIs invoked by this command (see Notes below).

Notes#

Examples#

// Set alarm after 6 seconds
at+cal-start=6000

cal-stop#

Stops the calendar alarm and unregisters the alarm callback.

Command Format#

at+cal-stop

Related SDK APIs#

Pre-conditions#

The calendar alarm must have been started using at+cal-start.

Parameters#

None

Response#

  • OK in case of success

  • ERROR <error code> in case of failure. Possible error codes are the same as those returned by the various APIs invoked by this command.

Notes#

  • This command disables the alarm by unregistering the alarm trigger callback.

Examples#

// Stop the calendar alarm
at+cal-stop