mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Set saved values
This commit is contained in:
parent
7b4a3ec648
commit
3acca7ddcb
1 changed files with 12 additions and 0 deletions
|
|
@ -154,6 +154,18 @@ struct SecurityConfig: View {
|
|||
ZStack {
|
||||
ConnectedDevice(bluetoothOn: bleManager.isSwitchedOn, deviceConnected: bleManager.connectedPeripheral != nil, name: (bleManager.connectedPeripheral != nil) ? bleManager.connectedPeripheral.shortName : "?")
|
||||
})
|
||||
.onAppear {
|
||||
setSecurityValues()
|
||||
|
||||
// Need to request a LoRaConfig from the remote node before allowing changes
|
||||
// if bleManager.connectedPeripheral != nil && node?.securityConfig == nil {
|
||||
// Logger.mesh.info("empty security config")
|
||||
// let connectedNode = getNodeInfo(id: bleManager.connectedPeripheral?.num ?? 0, context: context)
|
||||
// if node != nil && connectedNode != nil {
|
||||
// _ = bleManager.requestSecurityyConfig(fromUser: connectedNode!.user!, toUser: node!.user!, adminIndex: connectedNode?.myInfo?.adminIndex ?? 0)
|
||||
// }
|
||||
// }
|
||||
}
|
||||
.onChange(of: boolValues) { _ in
|
||||
hasChanges = true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue