Compare commits

...

5 Commits

View File

@@ -205,7 +205,6 @@ func messageHandler(client mqtt.Client, msg mqtt.Message) {
return
}
// Build insert statement
columns := []string{"plant_id", "mfm_meter_id"}
placeholders := []string{"$1", "$2"}
args := []interface{}{plantID, mfmMeterID}
@@ -255,8 +254,6 @@ func connectionLostHandler(client mqtt.Client, err error) {
log.Printf("Connection lost: %v. Attempting to reconnect...", err)
}
//..
func main() {
var err error
godotenv.Load()