bindRelay method

Future<bool> bindRelay(
  1. String superDeviceId,
  2. String deviceId
)

绑定网关

Implementation

Future<bool> bindRelay(String superDeviceId, String deviceId) async {
  try {
    await methodChannel.invokeMethod(
        "bindRelay", {"superDeviceId": superDeviceId, "deviceId": deviceId});
    return Future.value(true);
  } catch (e) {
    rethrow;
  }
}