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

ChannelId -1 #34

Open
Attacler opened this issue May 1, 2019 · 7 comments
Open

ChannelId -1 #34

Attacler opened this issue May 1, 2019 · 7 comments

Comments

@Attacler
Copy link

Attacler commented May 1, 2019

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

@Puneetkumarpal
Copy link

Puneetkumarpal commented Aug 28, 2019

i have same issue can any one help and there is any way to run any bluetooth api in electron no api is work in a proper way may be it's my implementation or there is no api for electron plz help is any can

thanks
ble  problums

i just pull it and try to run it

@VasilisCh
Copy link

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

Did you find any solution? I try to execute it on raspberry pi 3 b+.

Thanks,
bill

@Attacler
Copy link
Author

Attacler commented Oct 7, 2019

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

Did you find any solution? I try to execute it on raspberry pi 3 b+.

Thanks,
bill

Hey Bill,

I did not find a solution yet...
I moved on to another project and will continue the bluetooth one when its fixed.

Greetings,
Bart

@pedrohb88
Copy link

Any solution on this issue?

@VasilisCh
Copy link

@pedrohb88

for me the solution was to move to python. Took about an hour to achieve connection, between the raspberry and my phone.

Greetings,
bill

@asifma
Copy link

asifma commented Nov 17, 2019

Have the same problem here, anyone solved it with -1 in channelid?

@sujitpatil72
Copy link

Did anyone find any solution?

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

6 participants