This commit is contained in:
parent
9d069b7f6c
commit
610275ca1d
1 changed files with 4 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue