Sends a command to the device and awaits a response.
The command buffer.
A Promise that resolves with the response buffer.
Connects to the device.
A Promise that resolves when the connection is complete.
Disconnects from the device.
A Promise that resolves when the disconnection is complete.
Discovers the device services.
A Promise that resolves with the list of services.
Retrieves the device characteristics.
A Promise that resolves with the device characteristics.
Retrieves the device name.
A Promise that resolves with the device name.
Internal method to handle the connection process.
A Promise that resolves when the connection is complete.
Logs a message with the specified log level.
The severity level of the log (e.g., 'info', 'warn', 'error').
The log message to be emitted.
Operates the strip light with the given byte array.
The byte array to send.
Reads the state of the strip light.
Sets the brightness of the strip light.
The brightness percentage (0-100).
Sets the device name.
The new device name.
A Promise that resolves when the name is set.
Sets the RGB values of the strip light.
The brightness percentage (0-100).
The red value (0-255).
The green value (0-255).
The blue value (0-255).
Sets the state of the strip light.
The request byte array.
Turns the strip light off.
Turns the strip light on.
Unsubscribes from the notify characteristic.
A Promise that resolves when the unsubscription is complete.
Static
parseParses the service data from the SwitchBot Strip Light.
The service data buffer.
The function to emit log messages.
Class representing a WoStrip device.
See
https://github.com/OpenWonderLabs/SwitchBotAPI-BLE/blob/latest/devicetypes/ledstriplight.md