Optional
onadvertisementOptional
ondiscoverDiscovers Switchbot devices with enhanced error handling and logging.
The discovery parameters.
A Promise that resolves with an array of discovered Switchbot devices.
Starts scanning for SwitchBot devices.
Optional
params: Params = {}Optional parameters.
Stops scanning for SwitchBot devices.
Validates the parameters.
The parameters to validate.
The schema to validate against.
Waits for the specified time.
The time to wait in milliseconds.
SwitchBotBLE class to interact with SwitchBot devices.