UpdateGateway static method
Future<OperationResponse>
UpdateGateway(
- GatewayInfo gatewayInfo
)
Implementation
static Future<OperationResponse> UpdateGateway(
GatewayInfo gatewayInfo) async {
String jwt = await getJWT();
final channel = await Channel.getDefaultIoTManagerChannel();
final stub = GatewayManagerClient(channel,
options: CallOptions(metadata: {'jwt': jwt}));
OperationResponse operationResponse = await stub.updateGateway(gatewayInfo);
print('RegisterUserWithUserInfo: ${operationResponse}');
channel.shutdown();
return operationResponse;
}