|
@@ -6,7 +6,7 @@ import (
|
|
|
"imuslab.com/arozos/mod/iot"
|
|
|
"imuslab.com/arozos/mod/iot/hds"
|
|
|
"imuslab.com/arozos/mod/iot/hdsv2"
|
|
|
- //"imuslab.com/arozos/mod/iot/homekit"
|
|
|
+ "imuslab.com/arozos/mod/iot/sonoff_s2x"
|
|
|
module "imuslab.com/arozos/mod/modules"
|
|
|
prout "imuslab.com/arozos/mod/prouter"
|
|
|
)
|
|
@@ -74,11 +74,13 @@ func IoTHubInit() {
|
|
|
router.HandleFunc("/system/iot/list", iotManager.HandleListing)
|
|
|
router.HandleFunc("/system/iot/status", iotManager.HandleGetDeviceStatus)
|
|
|
router.HandleFunc("/system/iot/execute", iotManager.HandleExecute)
|
|
|
+ router.HandleFunc("/system/iot/icon", iotManager.HandleIconLoad)
|
|
|
|
|
|
//IoT Hub Info APIs
|
|
|
adminRouter.HandleFunc("/system/iot/listScanner", iotManager.HandleScannerList)
|
|
|
|
|
|
//Start of the IoT Management Handlers
|
|
|
+
|
|
|
//Home Dynamic v1 (Legacy)
|
|
|
hdsHandler := hds.NewProtocolHandler()
|
|
|
iotManager.RegisterHandler(hdsHandler)
|
|
@@ -86,6 +88,13 @@ func IoTHubInit() {
|
|
|
//Home Dynamic v2
|
|
|
hdsv2Handler := hdsv2.NewProtocolHandler(MDNS)
|
|
|
iotManager.RegisterHandler(hdsv2Handler)
|
|
|
+
|
|
|
+ //Tasmota Sonoff S2X
|
|
|
+ tasmotaSonoffS2x := sonoff_s2x.NewProtocolHandler(MDNS)
|
|
|
+ iotManager.RegisterHandler(tasmotaSonoffS2x)
|
|
|
+
|
|
|
+ //Add more here if needed
|
|
|
+
|
|
|
}
|
|
|
|
|
|
-}
|
|
|
+}
|