Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RangeError: Index out of range #2

Open
Kroltez opened this issue Apr 4, 2017 · 0 comments
Open

RangeError: Index out of range #2

Kroltez opened this issue Apr 4, 2017 · 0 comments

Comments

@Kroltez
Copy link

Kroltez commented Apr 4, 2017

Whenever I add (inside read intervals):

"acceleration-orientation": {
         "acceleration" : 15000
         "orientation"  : 15000
}

Then in services:

"acceleration-orientation" : ["acceleration", "orientation"]

I get an a range error, here is the full output:

BLE Auto-Start ... poweredOn
*** Auto-Connecting to Thunderboard 000b5751af26
*** Connected to Device 000b5751af26
Found [1] Services for 000b5751af26
Found Characteristic null[c4c1f6e24be511e5885dfeff819cdc9f] for service a4e649f44be511e5885dfeff819cdc9f
Setting up polling intervals for 000b5751af26 acceleration-orientation acceleration
Found Characteristic null[b7c4b694bee345ddba9ff3b5e994f49a] for service a4e649f44be511e5885dfeff819cdc9f
Setting up polling intervals for 000b5751af26 acceleration-orientation orientation
Found Characteristic null[71e30b8c41314703b0a0b0bbba75856b] for service a4e649f44be511e5885dfeff819cdc9f
Setting up polling intervals for 000b5751af26 acceleration-orientation control-point
buffer.js:825
throw new RangeError('Index out of range');
^
RangeError: Index out of range
at checkOffset (buffer.js:825:11)
at Buffer.readInt16BE (buffer.js:969:5)
at meta.CharacteristicDataParsers.(anonymous function) (/home/pi/node_modules/thunderboard-ble/lib/ThunderboardMeta.js:173:18)
at characteristicListener (/home/pi/node_modules/thunderboard-ble/lib/Thunderboard.js:213:11)
at Characteristic.<anonymous> (/home/pi/node_modules/thunderboard-ble/lib/Thunderboard.js:149:63)
at emitTwo (events.js:106:13)
at Characteristic.emit (events.js:191:7)
at Noble.onRead (/home/pi/node_modules/noble/lib/noble.js:278:22)
at emitMany (events.js:127:13)
at NobleBindings.emit (events.js:201:7)

For both sense and react is same output.

Enabled is set to true also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant