DelPort static method

Future<OperationResponse> DelPort(
  1. PortInfo portInfo
)

Implementation

static Future<OperationResponse> DelPort(PortInfo portInfo) async {
  String jwt = await getJWT();
  final channel = await Channel.getDefaultIoTManagerChannel();
  final stub = PortManagerClient(channel,
      options: CallOptions(metadata: {'jwt': jwt}));
  OperationResponse operationResponse = await stub.delPort(portInfo);
  print('DelPort: ${operationResponse}');
  channel.shutdown();
  return operationResponse;
}