Inital
This commit is contained in:
17
controller/data.go
Normal file
17
controller/data.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package controller
|
||||
|
||||
type StatusResponse struct {
|
||||
Method string `json:"method"`
|
||||
Env string `json:"env"`
|
||||
Result PilotDetails `json:"result"`
|
||||
}
|
||||
|
||||
type PilotDetails struct {
|
||||
Mac string `json:"mac"`
|
||||
RSSI int `json:"rssi"`
|
||||
Src string `json:"src"`
|
||||
State bool `json:"state"`
|
||||
SceneId int `json:"sceneId"`
|
||||
Temp int `json:"temp"`
|
||||
Dimming int `json:"dimming"`
|
||||
}
|
||||
Reference in New Issue
Block a user