static parse function

This commit is contained in:
2024-11-11 15:00:04 +01:00
parent 830596f211
commit 45e4cd793b
5 changed files with 128 additions and 6 deletions

View File

@ -18,6 +18,7 @@ import "udi/handlers/svej"
import "udi/handlers/dt1t"
import "udi/handlers/locative"
import "udi/handlers/snmp"
import "udi/handlers/z2m"
var handlerMap map[string]handler.Handler = make(map[string]handler.Handler)
@ -50,6 +51,8 @@ func InitDispatcher() {
factory = locative.New
case "SNMP":
factory = snmp.New
case "Z2M":
factory = z2m.New
default:
factory = nil
log.Printf("No handler %s found, ignore mapping", mapping.Handler)