getOneUDP static method

Future<PortConfig> getOneUDP(
  1. PortConfig config
)

Implementation

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