DelMqttDevice static method

Future<OperationResponse> DelMqttDevice(
  1. MqttDeviceInfo mqttDeviceInfo
)

Implementation

static Future<OperationResponse> DelMqttDevice(
    MqttDeviceInfo mqttDeviceInfo) async {
  String jwt = await getJWT();
  final channel = await Channel.getDefaultIoTManagerChannel();
  final stub = MqttDeviceManagerClient(channel,
      options: CallOptions(metadata: {'jwt': jwt}));
  OperationResponse operationResponse =
      await stub.delMqttDevice(mqttDeviceInfo);
  print('OperationResponse: ${operationResponse}');
  channel.shutdown();
  return operationResponse;
}