getAllTCP static method

Future<PortList> getAllTCP(
  1. Device device
)

Implementation

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