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

Re-arrange struct

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