Open WasylF opened 8 years ago
I resolved this by commenting out ble.stopScanning() in /adaptors/ble.js. Please see this commit for the exact change. https://github.com/jonbgallant/sphero.js/commit/788e944ca793493f3238d65249d7bfb5e9ad72c3
You can either make that change locally or you can use my fork.
On both: node@v6.10.3, noble@1.8.1
I want to connect to two BB8s.
I have the same results as above.
With one script attempting to connect to two ollies, some sample output might be:
# node Test.js
Ollie2 connected
noble warning: unknown peripheral xxxxxxxxxxxx
# node Test.js
Ollie1 connected
# node Test.js
Ollie2 connected
# node Test.js
Ollie1 connected
noble warning: unknown peripheral yyyyyyyyyyyy
# node Test.js
Ollie1 connected
Ollie2 connected
The first system doesn't show the warnings. When applying the aforementioned hack, both peripherals are unknown.
Hi!
I'm running Ubuntu 16.04 lts and my bluetooth adapter is BCM20702A0 Bluetooth 4.0.
It 100% physically could work with few devices because I could control 2 Ollies at the same time (first from official SDK and the second one by unofficial python SDK). But I couldn't control both of them at the same time from the official SDK.
My code:
When I execute it only first Ollie changing color.
I divided code into two different files and locate them in the different directories:
When I execute second one It trough exceptions:
Thanks in advance!