Ping static method

Future<void> Ping()

Implementation

static Future<void> Ping() async {
  final channel = await Channel.getOpenIoTHubChannel();
  final stub = UtilsClient(channel, options: CallOptions(timeout: Duration(seconds: 3)));
  Empty empty = Empty();
  await stub.ping(empty);
  channel.shutdown();
}