BLE Disconnect button help needed js #4279
Unanswered
espruino-discuss
asked this question in
Puck.js, Pixl.js, Jolt.js and MDBT42
Replies: 1 comment
-
Posted at 2024-02-29 by @gfwilliams I'm afraid I don't understand the question - are you trying to write some code that runs on an Espruino device that disconnects it from the currently connected computer when a button is pressed? Or are you trying to do something else? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2024-02-29 by user157578
Yesterday I wrote myself a disconnect button for:
<script src="https://www.puck-js.com/puck.js"></script> LED On! LED Off! from the tutorial page, I did however apparantly not save this small code snippet and I did not find it in my browser history. I did try this: async function disconnect(){ gatt.disconnect(); } and deviceObj.gatt.disconnect(). which both did not work. Puck.js2.1aBeta Was this translation helpful? Give feedback.
All reactions