From f36d6c9e18aff384cfc3a87b4a612c8da25ab490 Mon Sep 17 00:00:00 2001 From: GermanBluefox Date: Fri, 24 Nov 2023 19:25:57 +0100 Subject: [PATCH] Added bluetooth to the controller --- src-admin/src/Tabs/Controller.js | 14 ++++++++++++++ src/matter/ControllerNode.ts | 11 ++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/src-admin/src/Tabs/Controller.js b/src-admin/src/Tabs/Controller.js index 0d9f7627..c1f6ee52 100644 --- a/src-admin/src/Tabs/Controller.js +++ b/src-admin/src/Tabs/Controller.js @@ -493,6 +493,20 @@ class Controller extends React.Component { label={I18n.t('Bluetooth')} /> : null} + {this.props.matter.controller.enabled && this.props.matter.controller.ble ?
+ { + const matter = JSON.parse(JSON.stringify(this.props.matter)); + matter.controller.hciId = e.target.value; + this.props.updateConfig(matter); + }} + /> +
: null} {this.props.matter.controller.enabled && this.props.matter.controller.ble ?
new BleNode({ hciId: this.parameters.hciId })); + } } initEventHandlers(originalNodeId: NodeId | null, options?: any): any {