getAllTCP static method

Future<PortList> getAllTCP(
  1. SessionConfig sessionConfig
)

Implementation

static Future<PortList> getAllTCP(SessionConfig sessionConfig) async {
  final channel = await Channel.getOpenIoTHubChannel();
  final stub = SessionManagerClient(channel);
  final response = await stub.getAllTCP(sessionConfig);
  print('getAllTCP received: ${response.portConfigs}');
  channel.shutdown();
  return response;
}