Error handling for puck.js communication #4306
Replies: 1 comment
-
Posted at 2024-04-09 by @gfwilliams You mean using the Puck.js library? (source at https://github.com/espruino/EspruinoWebTools/blob/master/puck.js) I believe you can use Posted at 2024-04-21 by user155724 Hi Gordon, Thanks for the hint, we have finally managed it by doing some modifications in our fork: Your Espruino devices and the fact that you can easily program then via Web Bluetooth and Javascript are really awesome. This enables also a lot of possibilities for people with disabilities in combination with our AAC software AsTeRICS Grid. We will also use new feature this week in a series of workshops in Nairobi in Kenia. Thanks Posted at 2024-04-22 by @gfwilliams Hi, That's great! It's really good to see it used for this kind of thing. It looks like the changes in your fork aren't something I could pull back as they delete a bunch of stuff and change the API, but if you did want to contribute something back that added Posted at 2024-04-22 by user155724 Hi, Oh, I was primarily thinking of adding a tutorial about accessibility use cases to the puck-js documentation. It's up to you! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2024-04-05 by user155724
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.
Beta Was this translation helpful? Give feedback.
All reactions