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) {
|
func treatFrames(frames chan []byte, client influxdb2.Client) {
|
||||||
first := true
|
first := true
|
||||||
writeAPI := client.WriteAPIBlocking("", "teleinfo/autogen")
|
writeAPI := client.WriteAPIBlocking("", "teleinfo/autogen")
|
||||||
|
fframe:
|
||||||
for {
|
for {
|
||||||
frame := <-frames
|
frame := <-frames
|
||||||
|
|
||||||
@ -182,6 +183,9 @@ func treatFrames(frames chan []byte, client influxdb2.Client) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if key == "DATE" {
|
if key == "DATE" {
|
||||||
|
if horodate == nil {
|
||||||
|
continue fframe
|
||||||
|
}
|
||||||
defaultHorodate = *horodate
|
defaultHorodate = *horodate
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user