getOneTCP static method

Future<PortConfig> getOneTCP(
  1. PortConfig config
)

Implementation

static Future<PortConfig> getOneTCP(PortConfig config) async {
  final channel = await Channel.getOpenIoTHubChannel();
  final stub = CommonDeviceManagerClient(channel);
  final response = await stub.getOneTCP(config);
  print('Greeter client received: ${response}');
  channel.shutdown();
  return response;
}