Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
tcharp38 committed May 6, 2024
1 parent 0c31ce7 commit d9d69df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/class/AbeilleTools.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions core/php/AbeilleCmd.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9d69df

Please sign in to comment.