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 <david.escalona@digi.com>
This commit is contained in:
David Escalona 2023-02-08 13:15:51 +01:00
parent 8a81829e7b
commit cf5383ab3b
1 changed files with 1 additions and 2 deletions

View File

@ -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))