fix configuration
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2023-12-05 16:21:30 +01:00
parent 00a9eceea8
commit a5209dad8f
11 changed files with 94 additions and 15 deletions

View File

@ -5,6 +5,7 @@ import (
//"reflect"
"time"
"strconv"
"fmt"
"encoding/json"
"udi/config"
"udi/handlers/handler"
@ -30,7 +31,7 @@ type Observation struct {
}
func NewMbgw3Handler(config config.HandlerConfigT) *Mbgw3Handler {
func NewMbgw3Handler(config config.HandlerConfigT) handler.Handler {
t := &Mbgw3Handler {
id: idSeq,
}
@ -39,6 +40,10 @@ func NewMbgw3Handler(config config.HandlerConfigT) *Mbgw3Handler {
return t
}
func (self *Mbgw3Handler) GetId() string {
return fmt.Sprintf("MBGW3%d", self.id)
}
func (self *Mbgw3Handler) Handle(message handler.MessageT) {
// log.Printf("Handler MBGW3 %d processing %s -> %s", self.id, message.Topic, message.Payload)