From e2524061006101264ed32870706b361e439f8684 Mon Sep 17 00:00:00 2001 From: MaMe82 Date: Fri, 19 Oct 2018 23:35:01 +0200 Subject: [PATCH] WebClient: added bluetooth config options --- web_client/hvueComponentsBluetooth.go | 63 +++++++++++++++++++++++++++ web_client/mvuexGlobalState.go | 1 + 2 files changed, 64 insertions(+) diff --git a/web_client/hvueComponentsBluetooth.go b/web_client/hvueComponentsBluetooth.go index 3556607..6034b85 100644 --- a/web_client/hvueComponentsBluetooth.go +++ b/web_client/hvueComponentsBluetooth.go @@ -208,6 +208,69 @@ const templateBluetoothController = ` + + + + + + + Connectable + Allow incoming connections + + + + + + + + + Discoverable + P4wnP1 could be discovered by other devices if enabled (only if Connectable) + + + + + + + + + Bondable + Other devices could pair with P4wnP1 + + + + + + + + + High Speed + Use alternate data channel (802.11) + + + + + + + + + Low Energy + Enable Bluetooth LE (Bluetooth Smart) + + + + + + + + + Secure Simple Pairing + If disabled, insecure PIN based pairing is used and HighSpeed isn't available + + + + + diff --git a/web_client/mvuexGlobalState.go b/web_client/mvuexGlobalState.go index a77d31e..3606a87 100644 --- a/web_client/mvuexGlobalState.go +++ b/web_client/mvuexGlobalState.go @@ -174,6 +174,7 @@ func actionDeployCurrentBluetoothControllerInformation(store *mvuex.Store, conte res, err := RpcClient.DeployBluetoothControllerInformation(defaultTimeout, state.CurrentBluetoothControllerInformation) if err != nil { println("Couldn't deploy BluetoothControllerInformation", err) + actionUpdateCurrentBluetoothControllerInformation(store, context, state) return }