getAllDevice static method

Future<DeviceList> getAllDevice()

Implementation

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