From 548cefaf7daf222a1e36bb75acf00e0db51b15ee Mon Sep 17 00:00:00 2001 From: Tatiana Leon Date: Mon, 27 Feb 2023 17:14:21 +0100 Subject: [PATCH 1/2] connectcore-demo-example: add support for ccmp133-dvk in the network page ConnectCore MP13 DVK was not added to the network page when it was created (commit 4f9717a2d3a3807bff221c9c321d3d7223f3eb78) This commit is similar to 252c3544cbd005a30b9a2cb537029dcf682dadee. Signed-off-by: Tatiana Leon --- connectcore-demo-example/network.html | 1 + 1 file changed, 1 insertion(+) diff --git a/connectcore-demo-example/network.html b/connectcore-demo-example/network.html index f88fc2d..950e440 100644 --- a/connectcore-demo-example/network.html +++ b/connectcore-demo-example/network.html @@ -446,6 +446,7 @@ Digi Demo - Network + From 148f0dc99ce5bb7ea5eda496e0057a8236ce20ed Mon Sep 17 00:00:00 2001 From: David Escalona Date: Mon, 27 Mar 2023 13:54:42 +0200 Subject: [PATCH 2/2] connectcore-demo-example: limit demo to use only native BT adapter By default, when retrieving the Bluetooth interface to use in the demo, the service first tries with the native Bluetooth adapter and, in the case it fails, it looks for connected XBee devices with Bluetooth capabilities. This is causing the demo to lock the XBee port if the native Bluetooth interface is not present or fails to initialize. Avoid this behavior by limiting the Bluetooth service to use only the native Bluetooth interface for this demo. Signed-off-by: David Escalona --- connectcore-demo-example/demoserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectcore-demo-example/demoserver.py b/connectcore-demo-example/demoserver.py index 0f07e1f..675b6e0 100755 --- a/connectcore-demo-example/demoserver.py +++ b/connectcore-demo-example/demoserver.py @@ -666,7 +666,7 @@ class BluetoothService: """ with self._lock: try: - self._ble_service = ConnectCoreBLEService.get_instance() + self._ble_service = ConnectCoreBLEService.get_instance(ble_interface=BLEInterface.ADAPTER) self._ble_service.add_connect_callback(self._connection_cb) self._ble_service.add_data_received_callback(self._data_received_cb) self._ble_service.set_password(get_bt_password())