Skip to content

Commit

Permalink
tr-parking-sfhera: somewhat working skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
clezag committed Jul 3, 2024
1 parent 4e51729 commit 5f6eca1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion transformers/parking-offstreet-sfhera/src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ func main() {

dm := b.CreateDataMap()
dm.AddRecord(s.Id, dtFree.Name, bdplib.CreateRecord(raw.Timestamp.UnixMilli(), payload.Tot, 300))
b.PushData(ParkingStation, dm)
if err := b.PushData(ParkingStation, dm); err != nil {
slog.Error("Error pushing data to bdp", "err", err, "msg", m)
msgReject(&d)
continue
}

failOnError(d.Nack(false, true), "Could not ACK elaborated msg")

Expand Down

0 comments on commit 5f6eca1

Please sign in to comment.