1
0

hooks are now in array

This commit is contained in:
2022-01-01 06:26:02 +01:00
parent f2f8e27c89
commit 4e9aa8aeb5
3 changed files with 16 additions and 14 deletions

View File

@ -126,16 +126,17 @@ class notificationMethod
//global variables
$topics = array(); // list of topics
$mids = array(); // list of message IDs
$logFh = null; // filehandle of log file
$devices = array(); // array of device objetcs
$changed = array(); // list of changed devices
$notificationMethods = array(); // array of notification methods objects
$indexDevices = array(); // index devices by ieee_address
$hooks = array(); // array of hooks
$notificationMethods = array(); // array of notification methods objects
$events = array(); // list of event objects
$changed = array(); // list of changed devices
$dbInit = false; // flag to indicate that desvices db is initialized
$connected = false; // connected to MQTT server
$nSubscribed = 0; // Number of topics subsribed
$included = false; // flag indicate scripts are loaded
$events = array(); // list of event objects
$logFh = null; // filehandle of log file
// topics definition
$topics["zigbee2mqtt"] = new topic;