Merge pull request #9409 from MrKartoshka/hotfix/3.6
Connector RPC parаms hotfix
This commit is contained in:
commit
297792014c
@ -78,7 +78,7 @@ export class GatewayServiceRPCComponent implements AfterViewInit {
|
|||||||
sendCommand() {
|
sendCommand() {
|
||||||
const formValues = this.commandForm.value;
|
const formValues = this.commandForm.value;
|
||||||
const commandPrefix = this.isConnector ? `${this.connectorType}_` : 'gateway_';
|
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)),
|
next: resp => this.commandForm.get('result').setValue(JSON.stringify(resp)),
|
||||||
error: error => {
|
error: error => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user