From e0ce0a222ea33c28dbc2160c76f7bb93ca82a46a Mon Sep 17 00:00:00 2001 From: Maksym Dudnik Date: Fri, 13 Oct 2023 13:10:27 +0300 Subject: [PATCH] connector rpc params hotfix --- .../widget/lib/gateway/gateway-service-rpc.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc.component.ts index d3002ed748..317c547725 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc.component.ts @@ -78,7 +78,7 @@ export class GatewayServiceRPCComponent implements AfterViewInit { sendCommand() { const formValues = this.commandForm.value; const commandPrefix = this.isConnector ? `${this.connectorType}_` : 'gateway_'; - this.ctx.controlApi.sendTwoWayCommand(commandPrefix+formValues.command.toLowerCase(), {},formValues.time).subscribe({ + this.ctx.controlApi.sendTwoWayCommand(commandPrefix+formValues.command.toLowerCase(), formValues.params,formValues.time).subscribe({ next: resp => this.commandForm.get('result').setValue(JSON.stringify(resp)), error: error => { console.log(error);