wakeOnLAN static method

Future wakeOnLAN(
  1. Device device
)

Implementation

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