SetDeviceMac static method

Future<OperationResponse> SetDeviceMac(
  1. HostInfo hostInfo
)

Implementation

static Future<OperationResponse> SetDeviceMac(HostInfo hostInfo) async {
  String jwt = await getJWT();
  final channel = await Channel.getDefaultIoTManagerChannel();
  final stub = HostManagerClient(channel,
      options: CallOptions(metadata: {'jwt': jwt}));
  OperationResponse hostInfoList = await stub.setDeviceMac(hostInfo);
  print('SetDeviceMac: ${hostInfoList}');
  channel.shutdown();
  return hostInfoList;
}