Skip to content
Snippets Groups Projects
Commit 9d5e4ba9 authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Re-arrange struct

parent fe63bf45
Branches
No related tags found
No related merge requests found
......@@ -25,17 +25,17 @@ type (
// JSON structures for the z2m device from /bridge/devices
type Z2MDevice struct {
Definition struct {
Vendor string `json:"vendor"`
Model string `json:"model"`
Exposes []Expose `json:"exposes"`
} `json:"definition"`
Gateway *Gateway
Type string `json:"type"`
IeeeAddress string `json:"ieee_address"`
SwBuildID string `json:"software_build_id"`
FriendlyName string `json:"friendly_name"`
XAALDevices []XAALDeviceInterface
Gateway *Gateway
Definition struct {
Vendor string `json:"vendor"`
Model string `json:"model"`
Exposes []Expose `json:"exposes"`
} `json:"definition"`
XAALDevices []XAALDeviceInterface
}
type Expose struct {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment