From d9d69df7c78145656a590059fba2190cb427ca09 Mon Sep 17 00:00:00 2001 From: Tcharp38 Date: Mon, 6 May 2024 00:06:32 +0200 Subject: [PATCH] Debug --- core/class/AbeilleTools.class.php | 2 +- core/php/AbeilleCmd.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/class/AbeilleTools.class.php b/core/class/AbeilleTools.class.php index 105eada497..ee4871af30 100755 --- a/core/class/AbeilleTools.class.php +++ b/core/class/AbeilleTools.class.php @@ -470,7 +470,7 @@ public static function getConfig() { $config['parametersCheck_message'] = ""; for ($gtwId = 1; $gtwId <= maxGateways; $gtwId++) { - $config['ab::gtwType'.$gtwId] = config::byKey('ab::gtwType'.$gtwId, 'Abeille', '', 1); + $config['ab::gtwType'.$gtwId] = config::byKey('ab::gtwType'.$gtwId, 'Abeille', 'zigate', 1); $config['ab::gtwSubType'.$gtwId] = config::byKey('ab::gtwSubType'.$gtwId, 'Abeille', '', 1); $config['ab::gtwPort'.$gtwId] = config::byKey('ab::gtwPort'.$gtwId, 'Abeille', '', 1); $config['ab::gtwIpAddr'.$gtwId] = config::byKey('ab::gtwIpAddr'.$gtwId, 'Abeille', '', 1); diff --git a/core/php/AbeilleCmd.php b/core/php/AbeilleCmd.php index 25e147cd77..a9a50422b4 100644 --- a/core/php/AbeilleCmd.php +++ b/core/php/AbeilleCmd.php @@ -377,10 +377,12 @@ function signalHandler($signal) { $GLOBALS['zigates'] = []; $GLOBALS['lastSqn'] = 1; $eqLogics = eqLogic::byType('Abeille'); + cmdLog('debug', "TOTO config=".json_encode($config, JSON_UNESCAPED_SLASHES)); foreach ($eqLogics as $eqLogic) { $eqLogicId = $eqLogic->getLogicalId(); list($net, $addr) = explode("/", $eqLogicId); $gtwId = substr($net, 7); // 'AbeilleX' => 'X' + cmdLog('debug', "TOTO ${eqLogicId} gtwId=${gtwId}"); if ($config['ab::gtwType'.$gtwId] != 'zigate') continue; // Not a Zigate network