This commit is contained in:
parent
9d069b7f6c
commit
610275ca1d
4
main.go
4
main.go
@ -153,6 +153,7 @@ munits:
|
||||
func treatFrames(frames chan []byte, client influxdb2.Client) {
|
||||
first := true
|
||||
writeAPI := client.WriteAPIBlocking("", "teleinfo/autogen")
|
||||
fframe:
|
||||
for {
|
||||
frame := <-frames
|
||||
|
||||
@ -182,6 +183,9 @@ func treatFrames(frames chan []byte, client influxdb2.Client) {
|
||||
}
|
||||
|
||||
if key == "DATE" {
|
||||
if horodate == nil {
|
||||
continue fframe
|
||||
}
|
||||
defaultHorodate = *horodate
|
||||
continue
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user