add RawPayloadPrinter
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
2023-12-27 12:06:50 +01:00
parent 57c63adeb2
commit 5e94782575
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,17 @@
package rawPayloadPrinter
import (
"log"
"fmt"
"udi/database"
)
func Parse(fPort int, _ []byte, frmPayload string, variables *map[string]database.VariableType, device *database.Device) error {
if fPort != 2 {
return fmt.Errorf("Unexpected fPort %d", fPort)
}
log.Printf("frmPayload: %s", frmPayload)
return nil
}