lsongdev / lsongdev/node-bluetooth
ChannelId -1
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 205
- Forks
- 56
- PR merge metrics
- No merged PRs in 30d
Description
Hello there,
Whenever i try to run the example, this error comes up:
/home/pi/node-bluetooth/node_modules/node-bluetooth/index.js:18
const port = new BTSerialPortBinding(address, channel, function (err) {
^
TypeError: ChannelID should be a positive int value.
at Function.connect (/home/pi/node-bluetooth/node_modules/node-bluetooth/index.js:18:18)
at /home/pi/node-bluetooth/script.js:17:15
How can i solve this?
Greetings,
Bart
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the failing call in node_modules/node-bluetooth/index.js at line 18 and the example call in script.js at line 17. Check how the channel value is supplied and verify the Bluetooth device and channel details; done means the example connects without the ChannelID error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100