Skip to content

45: Alarm

Trigger an alarm, using buzzer, haptics, strobe and optional prompt. Duration header field will control the time the alert is played for, unless legacy alarm action is used.

Payload

FieldNameDescriptionTypeUnit
1Legacy alarm action4 bytes of encoded data relating to legacy alarm formats. Can not be used with other options. Note using this field will override Duration header field settinguint32
2DurationDuration of alarm in seconds. Max 127suint8
3Buzzer Patternuint8
4Buzzer Intensityuint8
5Haptics Patternuint8
6Haptics Intensityuint8
7Strobe Patternuint8
8Strobe Intensityuint8
9Prompt messageMessage to show on the device prompt If not set, no prompt will be shown
Prompts can be dismissed by button presses, or automatically after the prompt timeout has expired
ascii
10Prompt timeoutTimeout for the prompt in seconds
If not set, prompt will stay until dismissed with a button press
uint8
11Prompt button 1ascii
12Prompt button 2ascii

Examples

Show an LB prompt on the screen for 1 second

Code

For convenience, the following constants can be used to reference this message type.