feat: use /configuration/device and replice reachview system to define
antenna height See Pyxis/fieldnotes#63 (comment)
This commit is contained in:
@ -148,15 +148,7 @@ type Configuration struct {
|
||||
} `json:"settings,omitempty"`
|
||||
} `json:"base_corrections,omitempty"`
|
||||
} `json:"correction_input,omitempty"`
|
||||
Device struct {
|
||||
AntennaHeight float64 `json:"antenna_height,omitempty"`
|
||||
NightMode bool `json:"night_mode,omitempty"`
|
||||
OnboardingShown bool `json:"onboarding_shown,omitempty"`
|
||||
PowerOnBottomConnector bool `json:"power_on_bottom_connector,omitempty"`
|
||||
PrivacyPolicyAccepted bool `json:"privacy_policy_accepted,omitempty"`
|
||||
Role string `json:"role,omitempty"`
|
||||
UsageAnalysisAccepted bool `json:"usage_analysis_accepted,omitempty"`
|
||||
} `json:"device,omitempty"`
|
||||
Device ConfigurationDevice `json:"device,omitempty"`
|
||||
Logging struct {
|
||||
Logs struct {
|
||||
Autostart bool `json:"autostart,omitempty"`
|
||||
|
11
reach/client/protocol/v2/model/device.go
Normal file
11
reach/client/protocol/v2/model/device.go
Normal file
@ -0,0 +1,11 @@
|
||||
package model
|
||||
|
||||
type ConfigurationDevice struct {
|
||||
AntennaHeight float64 `json:"antenna_height,omitempty"`
|
||||
NightMode bool `json:"night_mode,omitempty"`
|
||||
OnboardingShown bool `json:"onboarding_shown,omitempty"`
|
||||
PowerOnBottomConnector bool `json:"power_on_bottom_connector,omitempty"`
|
||||
PrivacyPolicyAccepted bool `json:"privacy_policy_accepted,omitempty"`
|
||||
Role string `json:"role,omitempty"`
|
||||
UsageAnalysisAccepted bool `json:"usage_analysis_accepted,omitempty"`
|
||||
}
|
Reference in New Issue
Block a user