-
Notifications
You must be signed in to change notification settings - Fork 326
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
base: master
Are you sure you want to change the base?
Conversation
if [ $# = 1 ]; then | ||
@TERMUX_PREFIX@/libexec/termux-api BluetoothScan --es mode "$1" | ||
else | ||
echo "$SCRIPTNAME: You didnt specify the mode to use." >&2 |
There was a problem hiding this comment.
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>" |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, it is true ...
Feel free to review and make changes!
Requires termux-api pull request to be merged: termux/termux-api#686