I am trying to use the Puck.js as a central device, connecting to a peripheral device (BTLE actuator).
I suppose that the procedure is as following:
NRF.requestDevice() with either name or id of the peripheral device already known and used as filter
connect the gatt
bond with .startBonding
Whenever my Puck.js executes the gatt.connect(), I have 2 problems appearing: First one is that the Puck.js disconnects from the IDE, and second one is that connection fails with error "ERROR Connection Timeout".
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi there,
I am trying to use the Puck.js as a central device, connecting to a peripheral device (BTLE actuator).
I suppose that the procedure is as following:
name
orid
of the peripheral device already known and used as filter.startBonding
Whenever my Puck.js executes the
gatt.connect()
, I have 2 problems appearing: First one is that the Puck.js disconnects from the IDE, and second one is that connection fails with error "ERROR Connection Timeout".I tried to execute the code found here http://www.espruino.com/Reference#l_BluetoothRemoteGATTServer_startBonding
First step of requesting the device seems to be OK as I can read
found device
in the console when the puck.js doesn't disconnect from the IDE.Any idea on what goes wrong?