Expand database and device
This commit is contained in:
10
env/env.go
vendored
10
env/env.go
vendored
@@ -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,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user