hooks are now in array

This commit is contained in:
DTux committed 2022-01-01 06:26:02 +01:00
1 parent f2f8e27c89
commit 4e9aa8aeb5
3 files changed
+16 -14

No files matched your search

+5 -4
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;