Published a Web Bluetooth JS app for anyone to use #1953
Replies: 9 comments
-
Posted at 2017-01-12 by @gfwilliams Nice, thanks! It'd be well worth adding it to GitHub pages and providing a link in the Readme - then we could hopefully try it out just by clicking on it! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-12 by cmenscher Oops! It was already being hosted at https://cmenscher.github.io/puckWebBluetoothTemplate/, but you're totally right so I added a link to the README. 👌 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-12 by François Nice! Thanks for sharing @cmensche. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-13 by catmapper re "If the Puck never gets found, you may have to power cycle the Puck by taking the battery out. If you know of a way around this, please tell me!" I've found that as long as I make sure all other sessions have disconnected from the puck then it goes back into discovery mode, but does not advertise itself if it's currently connected |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-13 by cmenscher Is there a way to force a disconnect? I've found that to be true as well but closing browser windows doesn't seem to do it. I suppose there's some kind of timeout but I'd be happy to put a disconnect button somewhere. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-13 by @gfwilliams It's not done by default, but uploading |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-13 by cmenscher I actually send
when the app initially connects to the puck, but when watching the IDE it doesn't ever seem to run. I updated the NRF.disconnect() to the resetPuck function, but on testing it doesn't seem to do much either. But I could be missing something. ;-) I don't think it's a major issue, but my biggest concern is to prevent the puck from continuously running the code/send data and burn the battery. I assume calling reset() is enough to terminate most CPU and radio activity. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-16 by @gfwilliams If you add I think your problem might just be that you haven't put a newline at the end of the |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-17 by cmenscher Ah! Duh. Thanks I'll try adding the newline. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-01-11 by cmenscher
I just published a Github repo of a basic template for creating a Web Bluetooth js app to interact with a Puck.js in a browser...
https://github.com/cmenscher/puckWebBluetoothTemplate
It uses Bootstrap and jQuery, but you can easily rip those out. I've tested it on Chrome Desktop (OSX) and Android Chrome. I hope it's useful!
Beta Was this translation helpful? Give feedback.
All reactions