File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ type ADJ struct {
88}
99
1010type Info struct {
11- Ports map [string ]uint16 `json:"ports"`
12- Addresses map [string ]string `json:"addresses"`
13- Units map [string ]utils.Operations `json:"units"`
14- MessageIds map [string ]uint16 `json:"message_ids"`
15- BoardIds map [string ]uint16
11+ Ports [] map [string ]uint16 `json:"ports"`
12+ Addresses [] map [string ]string `json:"addresses"`
13+ Units [] map [string ]utils.Operations `json:"units"`
14+ MessageIds [] map [string ]uint16 `json:"message_ids"`
15+ BoardIds [] map [string ]uint16
1616}
1717
1818type Board struct {
Original file line number Diff line number Diff line change @@ -28,14 +28,14 @@ type Measurement interface {
2828}
2929
3030type NumericMeasurement struct {
31- Id string `json:"id"` // Remove json tags
32- Name string `json:"name"`
33- Type string `json:"type"`
34- Units string `json:"units"`
35- DisplayUnits utils.Units `json:"-"`
36- PodUnits utils.Units `json:"-"`
37- SafeRange []* float64 `json:"safeRange"`
38- WarningRange []* float64 `json:"warningRange"`
31+ Id string `json:"id"` // Remove json tags
32+ Name string `json:"name"`
33+ Type string `json:"type"`
34+ Units [] string `json:"units"`
35+ DisplayUnits [] utils.Units `json:"-"`
36+ PodUnits [] utils.Units `json:"-"`
37+ SafeRange []* float64 `json:"safeRange"`
38+ WarningRange []* float64 `json:"warningRange"`
3939}
4040
4141func (m NumericMeasurement ) GetId () string {
You can’t perform that action at this time.
0 commit comments