Skip to content

42: Buzzer Control ​

Control the buzzer. Either pass duration and frequency, Or all fields without frequency.

Payload ​

FieldNameDescriptionTypeUnit
1DurationDuration of buzzer in millisecondsuint16
2Sound TypeA predefined sound type
Possible values:
  • 0: Solid
  • 1: Siren
  • 2: Beep Beep
  • 3: Ambulance
  • 4: FireTruck
  • 5: Positive1
  • 6: SlowBeep
  • 7: Alarm
uint8
3IntensityIntensity of buzzer. [0-2]. Work as frequency control for buzzer types (moving towards and away from resonance).uint8
4Run CountNumber of times to run the buzzeruint8
5FrequencyFrequency of buzzer of KHz.(if frequency is sent, only duration and frequency parameters will be inside the message)float32

Examples ​

0.5KHz for 20ms
Siren sound for 2 seconds

Code ​

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