Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bluetooth scanning #187

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add bluetooth scanning #187

wants to merge 2 commits into from

Conversation

Munchax10
Copy link

@Munchax10 Munchax10 commented Jun 21, 2024

Feel free to review and make changes!

Requires termux-api pull request to be merged: termux/termux-api#686

if [ $# = 1 ]; then
@TERMUX_PREFIX@/libexec/termux-api BluetoothScan --es mode "$1"
else
echo "$SCRIPTNAME: You didnt specify the mode to use." >&2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't


SCRIPTNAME=termux-bluetooth-scan
show_usage () {
echo "Usage: $SCRIPTNAME <start/stop/info>"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I requested a change to info in termux/termux-api#686 - update this once we agree on a verb over there.

@@ -17,6 +17,7 @@ set(script_files
scripts/termux-api-stop
scripts/termux-audio-info
scripts/termux-battery-status
scripts/termux-bluetooth-scan
Copy link

@MatejMagat305 MatejMagat305 Jun 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, it would be better name "termux-bluetooth" - without "-scan", or no? It will probably has continuetion as "connect", "listen" or "send", am I wrong?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take a look at the rest of this list - there's a lot of termux-$system-$behavior. termux-bluetooth-scan looks consistent to me.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, it is true ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants