I am trying to add puckjs support for the Open Source AsTeRICS Grid AAC software in order to have an IR device or to remote controll battery-powerd toys using the FET output (see PR#340).
Is there a way to handle bluetooth disconnect or write error when using Puck.writefunction?
I would like to notify the user in such a case and maybe trigger a reconnect.
I also tried to use Puck.connect(), but this always forces me to reconnect to the device. If there was a previous successful connection, I would like to reuse it, not having to ask the user again.
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,
I am trying to add puckjs support for the Open Source AsTeRICS Grid AAC software in order to have an IR device or to remote controll battery-powerd toys using the FET output (see PR#340).
Is there a way to handle bluetooth disconnect or write error when using
Puck.write
function?I would like to notify the user in such a case and maybe trigger a reconnect.
I also tried to use
Puck.connect()
, but this always forces me to reconnect to the device. If there was a previous successful connection, I would like to reuse it, not having to ask the user again.Thanks for you help.