Class representing a WoHumi device.
https://github.com/OpenWonderLabs/SwitchBotAPI-BLE/tree/latest/devicetypes
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.
Decreases the humidifier setting.
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.
Increases the humidifier setting.
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.
Sets the humidifier level.
The level to set (0-100).
Sets the humidifier to auto mode.
Sets the device name.
The new device name.
A Promise that resolves when the name is set.
Sets the humidifier to manual mode.
Turns off the humidifier.
Turns on the humidifier.
Unsubscribes from the notify characteristic.
A Promise that resolves when the unsubscription is complete.
Static
Parses the service data for WoHumi.
The service data buffer.
The function to emit log messages.
Class representing a WoHumi device.
See
https://github.com/OpenWonderLabs/SwitchBotAPI-BLE/tree/latest/devicetypes