UpdateServer static method

Future<OperationResponse> UpdateServer(
  1. ServerInfo serverInfo
)

Implementation

static Future<OperationResponse> UpdateServer(ServerInfo serverInfo) async {
  String jwt = await getJWT();
  final channel = await Channel.getDefaultIoTManagerChannel();
  final stub = ServerManagerClient(channel,
      options: CallOptions(metadata: {'jwt': jwt}));
  OperationResponse operationResponse = await stub.updateServer(serverInfo);
  print('UpdateServer: ${operationResponse}');
  channel.shutdown();
  return operationResponse;
}