AddServer static method
Future<OperationResponse>
AddServer(
- ServerInfo serverInfo
)
Implementation
static Future<OperationResponse> AddServer(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.addServer(serverInfo);
print('AddServer: ${operationResponse}');
channel.shutdown();
return operationResponse;
}