Expand database and device

This commit is contained in:
2020-09-13 18:37:22 +02:00
parent 3f0fa81f18
commit f21e4ff1d6
4 changed files with 39 additions and 15 deletions

10
env/env.go vendored
View File

@@ -26,6 +26,14 @@ func (env *Env) DevicesIndex(w http.ResponseWriter, r *http.Request) {
return
}
for _, device := range devices {
fmt.Fprintf(w, "%s, %s, %s, £%.2f\n", device.ID, device.MAC, device.SN, device.LastMsg)
fmt.Fprintf(w, "%s, %s, %s, %s, %s, %s, %s\n",
device.TOPIC,
device.CustomerID,
device.DeviceID,
device.ProjectName,
device.MAC,
device.SN,
device.LastMsg,
)
}
}