* More strings

* Add duty cycle error
* Don't log local telemetry in the mesh log
This commit is contained in:
Garth Vander Houwen 2022-12-13 17:47:23 -08:00
parent 5da522b911
commit eedbef57fb
21 changed files with 256 additions and 195 deletions

View file

@ -78,8 +78,8 @@ struct MQTTConfig: View {
.autocorrectionDisabled()
HStack {
Label("Username", systemImage: "person.text.rectangle")
TextField("Server Username", text: $username)
Label("mqtt.username", systemImage: "person.text.rectangle")
TextField("mqtt.username", text: $username)
.foregroundColor(.gray)
.autocapitalization(.none)
.disableAutocorrection(true)
@ -105,8 +105,8 @@ struct MQTTConfig: View {
.keyboardType(.default)
.scrollDismissesKeyboard(.interactively)
HStack {
Label("Password", systemImage: "wallet.pass")
TextField("Server Password", text: $password)
Label("password", systemImage: "wallet.pass")
TextField("password", text: $password)
.foregroundColor(.gray)
.autocapitalization(.none)
.disableAutocorrection(true)

View file

@ -41,20 +41,20 @@ struct SerialConfig: View {
Toggle(isOn: $echo) {
Label("Echo", systemImage: "repeat")
Label("echo", systemImage: "repeat")
}
.toggleStyle(SwitchToggleStyle(tint: .accentColor))
Text("If set, any packets you send will be echoed back to your device.")
.font(.caption)
Picker("Baud Rate", selection: $baudRate ) {
Picker("Baud", selection: $baudRate ) {
ForEach(SerialBaudRates.allCases) { sbr in
Text(sbr.description)
}
}
.pickerStyle(DefaultPickerStyle())
Picker("Timeout", selection: $timeout ) {
Picker("timeout", selection: $timeout ) {
ForEach(SerialTimeoutIntervals.allCases) { sti in
Text(sti.description)
}
@ -63,7 +63,7 @@ struct SerialConfig: View {
Text("The amount of time to wait before we consider your packet as done.")
.font(.caption)
Picker("Mode", selection: $mode ) {
Picker("mode", selection: $mode ) {
ForEach(SerialModeTypes.allCases) { smt in
Text(smt.description)
}

View file

@ -86,7 +86,7 @@ struct TelemetryConfig: View {
VStack {
Form {
Section(header: Text("Update Intervals")) {
Section(header: Text("update.interval")) {
Picker("Device Metrics", selection: $deviceUpdateInterval ) {
ForEach(UpdateIntervals.allCases) { ui in
Text(ui.description)