Closes the curtain.
Optionalmode: number = 0xFFRunning mode (0x01 = QuietDrift, 0xFF = Default).
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.
Opens the curtain.
Optionalmode: number = 0xFFRunning mode (0x01 = QuietDrift, 0xFF = Default).
Sends a command to the curtain.
The command bytes.
Pauses the curtain.
Runs the curtain to the target position.
The percentage of the target position.
Optionalmode: number = 0xFFRunning mode (0x01 = QuietDrift, 0xFF = Default).
Sets the device name.
The new device name.
A Promise that resolves when the name is set.
Unsubscribes from the notify characteristic.
A Promise that resolves when the unsubscription is complete.
StaticparseParses the service data for WoCurtain.
The service data buffer.
The manufacturer data buffer.
The function to emit log messages.
Optionalreverse: boolean = falseWhether to reverse the position.
Class representing a WoCurtain device.
See