noble / bleno

A Node.js module for implementing BLE (Bluetooth Low Energy) peripherals
MIT License
2.12k stars 447 forks source link

Receiving data arrays greater than 20 when subscribing to event changes. #398

Open Adiraek opened 6 years ago

Adiraek commented 6 years ago

Hi,

I am currently implementing a Noble script on raspberry pi 3B where the incoming data is received by a subscription to a characteristic.

The incoming data is an array of size 20 with each index of the array one byte. When I try to increase the sent array size the for example, 21, the data received is still of size 20. When I reduce the sent array size to 19 or less the received data packet also reduces to that number.

I have attached an example of my code that works but the data received is capped at an array size of 20.

Is it possible to receive data packets greater than 20 bytes and how would you go about doing so?

Thank you! nodejstextstream