Properties
UUIDS
UUIDS: { CHARACTERISTICS: { INDICATE: "72c90005-57a9-4d40-b746-534e22ec9f9e"; NOTIFY: "72c90003-57a9-4d40-b746-534e22ec9f9e"; WRITE: "72c90004-57a9-4d40-b746-534e22ec9f9e"; WRITE_WO_RESPONSE: "72c90002-57a9-4d40-b746-534e22ec9f9e" }; SERVICE_ID: "72c90001-57a9-4d40-b746-534e22ec9f9e" } = {SERVICE_ID: '72c90001-57a9-4d40-b746-534e22ec9f9e' as const,CHARACTERISTICS: {INDICATE: '72c90005-57a9-4d40-b746-534e22ec9f9e' as const,NOTIFY: '72c90003-57a9-4d40-b746-534e22ec9f9e' as const,WRITE: '72c90004-57a9-4d40-b746-534e22ec9f9e' as const,WRITE_WO_RESPONSE: '72c90002-57a9-4d40-b746-534e22ec9f9e' as const,} as const,} as const
Type declaration
-
CHARACTERISTICS: { INDICATE: "72c90005-57a9-4d40-b746-534e22ec9f9e"; NOTIFY: "72c90003-57a9-4d40-b746-534e22ec9f9e"; WRITE: "72c90004-57a9-4d40-b746-534e22ec9f9e"; WRITE_WO_RESPONSE: "72c90002-57a9-4d40-b746-534e22ec9f9e" }
-
INDICATE: "72c90005-57a9-4d40-b746-534e22ec9f9e"
-
NOTIFY: "72c90003-57a9-4d40-b746-534e22ec9f9e"
-
WRITE: "72c90004-57a9-4d40-b746-534e22ec9f9e"
-
WRITE_WO_RESPONSE: "72c90002-57a9-4d40-b746-534e22ec9f9e"
-
SERVICE_ID: "72c90001-57a9-4d40-b746-534e22ec9f9e"
onAnalogInput
onAnalogInput: ((requestId: number, level: number, analogInputNotifyMode: number) => void) | null = null
onAnalogInputEvent
onAnalogInputEvent: ((level: number) => void) | null = null
onBatteryLevel
onBatteryLevel: ((battery: number) => void) | null = null
onDigitalInput
onDigitalInput: ((requestId: number, pin: number, state: number) => void) | null = null
onDigitalInputEvent
onDigitalInputEvent: ((pin: number, state: number) => void) | null = null
onDigitalOutput
onDigitalOutput: ((requestId: number, pin: number, state: number) => void) | null = null
onPwm
onPwm: ((requestId: number, level: number) => void) | null = null
onStatusButtonPressed
onStatusButtonPressed: (() => void) | null = null
onVOutput
onVOutput: ((requestId: number, vccState: number) => void) | null = null
Static AnalogInputEventCondition
AnalogInputEventCondition: { ABOVE_THRESHOLD: 17; BELOW_THRESHOLD: 34; NOT_NOTIFY: 0 } = {NOT_NOTIFY: 0 as const,ABOVE_THRESHOLD: 17 as const,BELOW_THRESHOLD: 34 as const,} as const
Type declaration
-
ABOVE_THRESHOLD: 17
-
BELOW_THRESHOLD: 34
-
NOT_NOTIFY: 0
Static AnalogInputNotifyMode
AnalogInputNotifyMode: { ALWAYS: 2; ONCE: 1; STOP: 0 } = {STOP: 0 as const,ONCE: 1 as const,ALWAYS: 2 as const,} as const
Type declaration
-
ALWAYS: 2
-
ONCE: 1
-
STOP: 0
Static Pin
Pin: { P1: 0; P2: 1; P3: 2 } = {P1: 0 as const,P2: 1 as const,P3: 2 as const,} as const
Static State
State: { HIGH_2_LOW: 2; LOW_2_HIGH: 1 } = {LOW_2_HIGH: 1 as const,HIGH_2_LOW: 2 as const,} as const
Type declaration
-
HIGH_2_LOW: 2
-
LOW_2_HIGH: 1
Static Vcc
Vcc: { OFF: 2; ON: 1 } = {ON: 1 as const,OFF: 2 as const,} as const
Static VccState
VccState: { OFF: 0; ON: 1 } = {OFF: 0 as const,ON: 1 as const,} as const
Analog input