From cf5383ab3b814f2522241da9392b77398d51617b Mon Sep 17 00:00:00 2001 From: David Escalona Date: Wed, 8 Feb 2023 13:15:51 +0100 Subject: [PATCH] connectcore-demo-example: adjust BLE payload size Remove the sleep time between write operations in the BLE service. The communication problems observed are more related with the size of the payload written rather than the timing between frames. Signed-off-by: David Escalona --- connectcore-demo-example/demoserver.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/connectcore-demo-example/demoserver.py b/connectcore-demo-example/demoserver.py index 4fe76b9..5d58eb7 100755 --- a/connectcore-demo-example/demoserver.py +++ b/connectcore-demo-example/demoserver.py @@ -95,7 +95,7 @@ BT_TAG_VALUE = "value" BT_OP_READ = "R" BT_OP_WRITE = "W" -BT_PAYLOAD_LIMIT = 200 +BT_PAYLOAD_LIMIT = 140 BT_REQUEST_TIMEOUT = 5000 @@ -1010,7 +1010,6 @@ class BluetoothService: BT_PAYLOAD_LIMIT + BT_PAYLOAD_LIMIT] } self._ble_service.send_data(json.dumps(chunk_data).encode('utf-8')) - time.sleep(0.2) chunk_index += 1 except ConnectCoreBLEException as exc: log.error("Unable send data to connected device: %s", str(exc))