Skip to content

Commit

Permalink
Regression fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tcharp38 committed Feb 3, 2025
1 parent 1082780 commit 0c5ac7c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
29 changes: 15 additions & 14 deletions core/class/Abeille.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2623,6 +2623,7 @@ public static function msgToCmd($priority, $topic, $payload = "") {
- To update from JSON (identical to re-inclusion) => action = 'update'
- To force a different model than the one auto-detected => action = 'update'
*/
// WARNING: This CAN'T be moved in 'AbeilleMainD.php' as it is used by 'install.php'too
public static function createDevice($action, $dev) {
log::add('Abeille', 'debug', ' createDevice('.$action.', dev='.json_encode($dev, JSON_UNESCAPED_SLASHES));

Expand Down Expand Up @@ -3263,21 +3264,21 @@ public static function createDevice($action, $dev) {
Abeille::msgToParser($msg);
} // End createDevice()

// public static function msgToParser($msg) {
// global $abQueues;
// $queue = msg_get_queue($abQueues['xToParser']['id']);
// $msgJson = json_encode($msg, JSON_UNESCAPED_SLASHES);
// msg_send($queue, 1, $msgJson, false, false);
// log::add('Abeille', 'debug', " Msg to Parser: ".$msgJson);
// }
public static function msgToParser($msg) {
global $abQueues;
$queue = msg_get_queue($abQueues['xToParser']['id']);
$msgJson = json_encode($msg, JSON_UNESCAPED_SLASHES);
msg_send($queue, 1, $msgJson, false, false);
log::add('Abeille', 'debug', " Msg to Parser: ".$msgJson);
}

// public static function msgToCmd2($msg) {
// global $abQueues;
// $queue = msg_get_queue($abQueues['xToCmd']['id']);
// $msgJson = json_encode($msg, JSON_UNESCAPED_SLASHES);
// msg_send($queue, 1, $msgJson, false, false);
// log::add('Abeille', 'debug', " Msg to Cmd: ".$msgJson);
// }
public static function msgToCmd2($msg) {
global $abQueues;
$queue = msg_get_queue($abQueues['xToCmd']['id']);
$msgJson = json_encode($msg, JSON_UNESCAPED_SLASHES);
msg_send($queue, 1, $msgJson, false, false);
log::add('Abeille', 'debug', " Msg to Cmd: ".$msgJson);
}

// /* Update all infos related to last communication time & LQI of given device.
// This is based on timestamp of last communication received from device itself. */
Expand Down
2 changes: 1 addition & 1 deletion docs/fr_FR/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ChangeLog

- Correction: AbeilleMainD
- Corrections: Regression AbeilleMainD + Abeille.class

## 250128-BETA-2, ## 250128-BETA-1

Expand Down

0 comments on commit 0c5ac7c

Please sign in to comment.