更新法语语言包
This commit is contained in:
@@ -69,7 +69,7 @@ class WebviewTestController extends GetControllerEx<WebviewTestModel> {
|
||||
bridge: bridge,
|
||||
onConnect: (args1, args2) {
|
||||
final devices = args1.devices as Map<String, dynamic>;
|
||||
final mac = args2 as String;
|
||||
final mac = args2 as String;
|
||||
if (devices.containsKey(mac)) {
|
||||
final device = devices[mac];
|
||||
ef.log('Minibleapp connected(Android): $mac -> $device');
|
||||
@@ -340,6 +340,17 @@ class WebviewTestController extends GetControllerEx<WebviewTestModel> {
|
||||
}
|
||||
return true;
|
||||
});
|
||||
bridge.sdk.sendCommand((args) async {
|
||||
ef.log('wifi控制指令: $args[0]');
|
||||
try {
|
||||
MHTBlueToothController blueToothController = Get.find();
|
||||
// await blueToothController.saveHabitData(args[0]);
|
||||
await blueToothController.sendCommand(args[0]);
|
||||
} catch (e) {
|
||||
ef.log("[wifi控制下发指令失败]:$e");
|
||||
}
|
||||
return true;
|
||||
});
|
||||
});
|
||||
} catch (e, s) {
|
||||
ef.log('$e,$s');
|
||||
|
||||
Reference in New Issue
Block a user