mirror of
https://github.com/lehanspb/tuya-mqtt.git
synced 2025-12-18 08:13:23 +00:00
tuyapi 5.1.x and protocol 3.3
Initial update to work with tuyapi 5.1.x and support for Tuya protocol ver 3.3 via device discovery.
This commit is contained in:
@@ -15,7 +15,8 @@ const debugColor = require('debug')('TuyAPI:device:color');
|
||||
*/
|
||||
|
||||
// Helpers
|
||||
const Parser = require('tuyapi/lib/message-parser');
|
||||
const MessageParser = require('tuyapi/lib/message-parser').MessageParser;
|
||||
const Parser = new MessageParser()
|
||||
|
||||
/**
|
||||
* Extends default TuyAPI-Class to add some more error handlers
|
||||
@@ -318,4 +319,4 @@ var TuyaDevice = (function () {
|
||||
return TuyaDevice;
|
||||
}());
|
||||
|
||||
module.exports = TuyaDevice;
|
||||
module.exports = TuyaDevice;
|
||||
|
||||
Reference in New Issue
Block a user