pepeu
Posts: 18
Joined: Wed Jul 16, 2014 1:58 pm

Adding a button to disconnect all devices

Tue Feb 20, 2018 7:51 am

Heyoo!
I followed the great guide at https://github.com/BaReinhard/Super-Sim ... er-Install for making a bluetooth receiver and it's working great. But, I was wondering how to make a physical button that disconnects any connected devices to it, in case some forgets to disconnect but is still within range and connected.

A button that... triggers a script, that lists all connected devices, and then disconnects them? I'm just blabbering here. Any help would be greatly appreciated! And yes, I'm noobish, so explain it like I'm five.

Cheers!

PhatFil
Posts: 390
Joined: Thu Apr 13, 2017 3:55 pm

Re: Adding a button to disconnect all devices

Tue Feb 20, 2018 10:02 am

pepeu wrote:
Tue Feb 20, 2018 7:51 am
Heyoo!
I followed the great guide at https://github.com/BaReinhard/Super-Sim ... er-Install for making a bluetooth receiver and it's working great. But, I was wondering how to make a physical button that disconnects any connected devices to it, in case some forgets to disconnect but is still within range and connected.

A button that... triggers a script, that lists all connected devices, and then disconnects them? I'm just blabbering here. Any help would be greatly appreciated! And yes, I'm noobish, so explain it like I'm five.

Cheers!
Yes, but its a bit more than the usual 'hello world' beginners program,, there are two things to learn about, physically connecting a button to the pi and figuring out how to react to it..
https://www.hackster.io/hardikrathod/pu ... -pi-6b6928

Then there is the whole bluetooth aspect ;) but google to the rescue... viewtopic.php?t=164400

Return to “Graphics, sound and multimedia”

Who is online

Users browsing this forum: No registered users and 8 guests