lsongdev / node-bluetooth

:large_blue_diamond:😬Bluetooth serial port communication for Node.js
https://npmjs.org/node-bluetooth
Other
197 stars 56 forks source link

ChannelId -1 #34

Open Attacler opened 5 years ago

Attacler commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 4 years ago

Any solution on this issue?

VasilisCh commented 4 years ago

@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 commented 4 years ago

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

sujitpatil72 commented 4 years ago

Did anyone find any solution?