Our website is under construction. Please stay tuned!

leaps_alarm_start

Activates on board alarm for a specified time period.


Input
  • LED, motor, buzzer: ‘0’ | ‘1’ (1 enables particular alarm)

  • duration: ? 8-bit unsigned integer ? (alarm time period in multiple of 200 ms)

  • intensity: ? 8-bit unsigned integer ? (alarm intensity)

Output
  • err_code


Example

TLV request

type

length

value

0x85

0x04

byte 0: alarm conf iguration

  • bit 0 - enable LED

  • bit 1 - enable buzzer

  • bit 2 - enable motor

  • bit 3-7 reserved

byte 1: reserved
byte 2: duration in multiple of 200 ms
byte 3: intensity

0x07 0x00 0x05 0xff

Type 0x85 means command leaps_alarm_start

TLV response

type

length

value (see error codes)

0x40

0x01

0x00

Type 0x40 means err_code of the previous command