@@ -40,30 +40,22 @@ type Board struct {
4040}
4141
4242type Packet struct {
43- Id string `json:"id"`
44- Name string `json:"name"`
45- Type string `json:"type"`
46- Variables []Measurement `json:"variables"`
43+ Id uint16 `json:"id"`
44+ Name string `json:"name"`
45+ Type string `json:"type"`
46+ Variables []Measurement
47+ VariablesIds []string `json:"variables"`
4748}
4849
4950type Measurement struct {
50- Id string `json:"id"`
51- Name string `json:"name"`
52- Type string `json:"type"`
53- PodUnits string `json:"podUnits"`
54- DisplayUnits string `json:"displayUnits"`
55- EnumValues []string `json:"enumValues"`
56- SafeRange []* float64 `json:"safeRange"`
57- WarningRange []* float64 `json:"warningRange"`
58- }
59-
60- type MeasurementJSON struct {
61- Id string `json:"id"`
62- Name string `json:"name"`
63- Type string `json:"type"`
64- PodUnits string `json:"podUnits"`
65- DisplayUnits string `json:"displayUnits"`
66- EnumValues []string `json:"enumValues"`
51+ Id string `json:"id"`
52+ Name string `json:"name"`
53+ Type string `json:"type"`
54+ PodUnits string `json:"podUnits"`
55+ DisplayUnits string `json:"displayUnits"`
56+ EnumValues []string `json:"enumValues"`
57+ SafeRange []* float64
58+ WarningRange []* float64
6759 Below BelowOrAbove `json:"below"`
6860 Above BelowOrAbove `json:"above"`
6961 OutOfRange OutOfRange `json:"out_of_range"`
@@ -79,11 +71,6 @@ type OutOfRange struct {
7971 Warning []* float64 `json:"warning"`
8072}
8173
82- type Range struct {
83- Warning * float64 `json:"warning"`
84- Safe * float64 `json:"safe"`
85- }
86-
8774type Structure struct {
8875 Packet Packet
8976 Measurements []Measurement
0 commit comments