Skip to content

Commit 6bd3aac

Browse files
authored
Update ajaxSystem.class.php
1 parent f0b1aaa commit 6bd3aac

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

core/class/ajaxSystem.class.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,10 @@ public function execute($_options = array()) {
395395
if(!isset($command['AdditionalParam'])){
396396
$command['AdditionalParam'] = array();
397397
}
398-
$command['AdditionalParam']['ChannelsAdditionalParam'] = array("CHANNEL_".explode(" ", $this->getLogicalId())[1]);
398+
$command['AdditionalParam'][] = array(
399+
'additionalParamType' => 'CHANNELS',
400+
'channels' => array("CHANNEL_".explode(" ", $this->getLogicalId())[1])
401+
);
399402
}
400403
log::add('ajaxSystem','debug','Command send to ajax : '.json_encode($command));
401404
ajaxSystem::request('/user/{userId}/hubs/' . $eqLogic->getConfiguration('hub_id') . '/devices/' . $eqLogic->getLogicalId() . '/command', $command, 'POST');

0 commit comments

Comments
 (0)