updateDeviceName method
修改设备名称
Implementation
Future<bool> updateDeviceName(String deviceId, String deviceName) async {
try {
await methodChannel.invokeMethod(
"updateDeviceName", {"deviceId": deviceId, "deviceName": deviceName});
return Future.value(true);
} catch (e) {
rethrow;
}
}