OK I have good news: I can open and maintain a connection with the actuator !
Once again, you were right @Gordon, it was due to a refused bonding. When I discovered the param forceRePair of the startBonding() method I immediately tried to set it to 1 and ... it worked.
I always receive an empty buffer . I tried to retrieve this value with NrfConnect and this works well.
By the way, I am experiencing disconnections between the IDE and the puck sometimes (I would say every 4-5 minutes after having reseted the puck), even if I don't download any script in it. Is it a feature to keep the consumption low, or an issue in my setup?
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.
OK I have good news: I can open and maintain a connection with the actuator !
Once again, you were right @Gordon, it was due to a refused bonding. When I discovered the param
forceRePair
of thestartBonding()
method I immediately tried to set it to1
and ... it worked.Now I cannot read any value , including mandatory fields such as DeviceInfo.ModelNumber (0x180A-->0x2A24). However I am strictly following the example given in the doc http://www.espruino.com/Reference#l_BluetoothRemoteGATTCharacteristic_readValue :
I always receive an empty buffer . I tried to retrieve this value with NrfConnect and this works well.
By the way, I am experiencing disconnections between the IDE and the puck sometimes (I would say every 4-5 minutes after having reseted the puck), even if I don't download any script in it. Is it a feature to keep the consumption low, or an issue in my setup?