|
@@ -96,6 +96,11 @@ func IoTHubInit() {
|
|
iotManager.RegisterHandler(tasmotaSonoffS2x)
|
|
iotManager.RegisterHandler(tasmotaSonoffS2x)
|
|
|
|
|
|
//Add more here if needed
|
|
//Add more here if needed
|
|
|
|
+ //Start the initial scanning
|
|
|
|
+ go func() {
|
|
|
|
+ iotManager.ScanDevices()
|
|
|
|
+ systemWideLogger.PrintAndLog("IoT", "Initial IoT device scanning completed", nil)
|
|
|
|
+ }()
|
|
|
|
|
|
//Finally, inject the gateway into the AGI interface
|
|
//Finally, inject the gateway into the AGI interface
|
|
AGIGateway.Option.IotManager = iotManager
|
|
AGIGateway.Option.IotManager = iotManager
|