Puck2.js Master/Slave: probem (red LED) when establishing the connection #3413
Replies: 6 comments
-
Posted at 2020-07-28 by @gfwilliams It sounds like you've got the master/central "c123" (the one doing the connecting) trying to connect to itself with I think you need: ...filters: [{ name: 'Puck.js ae23' instead and you should be ok? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-07-28 by user67655 oh, sorry, my copy/paste was wrong here :-(
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-07-28 by @gfwilliams Is it possible that you're still connected to the slave device with your PC? Espruino BLE devices can only have one device connected to them at a time, so if you're connected with your PC, the 'master' device won't be able to connect. Also, if you stay connected with the 'master' you could change the code to:
And you might be able to see what error it is complaining about |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-07-28 by user67655 Thank you Gordon, it's working now! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-07-28 by user67655 I tried now also the 2nd example ( at "Making it faster" ):
What could be the problem here? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-07-28 by user67655 I just found: if I re-insert the batteries after the 4) step above (without re-loading the codes), then everything work correctly. So I think it's not a problem anymore. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2020-07-28 by user67655
I have the pucks named "c123" (master), and "ae23" (slave).
I followed the description at https://www.espruino.com/Puck.js+Controlling+Other+Pucks
Testing with and without loading "require("ble_simple_uart")" on WEB IDE via "Send to Espruino"
The result is always
a) master: the blue LED is on (OK), then the red LED is on (KO)
b) slave does nothing
What do I do wrong?
Thanks for the answer!
Beta Was this translation helpful? Give feedback.
All reactions