|
|
|
|
@ -42,8 +42,6 @@ import { DeviceToolKit as DeviceToolKitWE100 } from "@flossom-npm/iot-translater
|
|
|
|
|
const deviceToolKitInstanceWL200 = new DeviceToolKitWE100("WL200", "WL200");
|
|
|
|
|
deviceToolKitInstanceWL200.setDebug(true);
|
|
|
|
|
|
|
|
|
|
// const _deviceToolKitInstanceWL200 = new DeviceToolKitWE100("WE100", "WL200");
|
|
|
|
|
|
|
|
|
|
const deviceToolKitInstanceM01 = new DeviceToolKitWE100("WE100", "M01");
|
|
|
|
|
deviceToolKitInstanceM01.setDebug(true);
|
|
|
|
|
|
|
|
|
|
@ -695,6 +693,7 @@ class ConnectionBluetoot extends Component<any, any> {
|
|
|
|
|
? deviceToolKitInstanceWL200.toBleCommand(versionCommand as any)
|
|
|
|
|
: deviceToolKitInstanceM01.toBleCommand(versionCommand as any);
|
|
|
|
|
|
|
|
|
|
console.log(otaDeviceType, " value", value);
|
|
|
|
|
sendCommand({ value });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|