UpdateServer static method
Future<OperationResponse>
UpdateServer(
- 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;
}