Static
parseParses the advertisement data coming from SwitchBot device.
This function processes advertising packets received from SwitchBot devices and extracts relevant information based on the device type.
The peripheral device object from noble.
The function to emit log messages.
null
if the device is not recognized.Static
parseParses the service data based on the device model.
The device model.
The service data buffer.
The manufacturer data buffer.
The function to emit log messages.
Represents the advertising data parser for SwitchBot devices.