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: set multiple MAC in one BTDEVADDR feature #424

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions providers/base/units/bluetooth/jobs.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,21 @@ command:
echo "btdevaddr option not set to device address of Bluetooth target in checkbox.conf"
exit 1
fi
set -o pipefail; bluetooth_test.py "$PLAINBOX_PROVIDER_DATA"/images/JPEG_Color_Image_Ubuntu.jpg "$BTDEVADDR" send 2>&1 | ansi_parser.py
for bt in $(echo "${BTDEVADDR}" | cut -d = -f 2 | sed s/,/\\n/g)
do
echo "Host:[${bt}]"
if echo 'u' | sudo -S l2ping -c 5 -t 5 "${bt}"
then
echo "Get available BTDEVADDR:[${bt}]"
set -o pipefail
if bluetooth_test.py "$PLAINBOX_PROVIDER_DATA"/images/JPEG_Color_Image_Ubuntu.jpg "${bt}" send 2>&1 | ansi_parser.py
then
exit 0
fi
fi
done
echo "There are no available BT devices."
exit 1
flags: also-after-suspend
_summary: Bluetooth OBEX send
_description:
Expand Down Expand Up @@ -459,4 +473,4 @@ _steps:
2. Click "Test", then speak into your Bluetooth microphone.
3. After a few seconds, your speech will be played back to you.
_verification:
Did you hear your speech played back?
Did you hear your speech played back?