setModel method

dynamic setModel(
  1. String deviceId,
  2. DeviceModel model
)

设置设备模式

Implementation

setModel(String deviceId, DeviceModel model) async {
  return await methodChannel
      .invokeMethod("setModel", {"deviceId": deviceId, "model": model.name});
}