Hello,
with Arduino I do want to recive Data from an BLE device.
Based on existing code for Raspberry (witch is working I confirmed) I got the device connected, connected to the service, registered the callback for Notify and send the request byte.
All is working.
I even get the Callback fired, but only 20 out of over 40 Bytes recived.
I also confirmed the behavior with an BLE App for iOS, where I also get all bytes.
Is there any point where I can define the number of bytes I want to get? How can I get all data?
Anton
BLE BLERemoteCharacteristic Notify misses Bytes
-
- Posts: 1734
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: BLE BLERemoteCharacteristic Notify misses Bytes
https://community.nxp.com/t5/Wireless-C ... -p/1129270
BLE standard define two ways to transfer data for the server to the client: notification and indication. Maximum data payload size defined by the specification in each message is 20 bytes.
Re: BLE BLERemoteCharacteristic Notify misses Bytes
I am suggesting to answer in topics you know. In this case maybe its worth to read about MTU?MicroController wrote: ↑Thu Mar 14, 2024 10:58 pmhttps://community.nxp.com/t5/Wireless-C ... -p/1129270BLE standard define two ways to transfer data for the server to the client: notification and indication. Maximum data payload size defined by the specification in each message is 20 bytes.
You can send/receive notifications/indications in size over 500 bytes.
-
- Posts: 1734
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: BLE BLERemoteCharacteristic Notify misses Bytes
Or any of link below, rather than saying that 20 in MAX by bluetooth specification, which is wrong:
https://github.com/espressif/esp-idf/issues/3315
viewtopic.php?t=1989
https://github.com/esphome/issues/issues/4041
viewtopic.php?t=4546
Who is online
Users browsing this forum: Bing [Bot] and 120 guests