Skip to content

A shell script that automates connecting to a Bluetooth device using its MAC address with `bluetoothctl`, useful for Raspberry Pi and IoT projects.

License

Notifications You must be signed in to change notification settings

balazser/connect-bluetooth.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Bluetooth Device Connection Script

This script uses the bluetoothctl to connect to a Bluetooth device using its MAC address.

Usage

To use the script, save the script to a file, make it executable using chmod +x <filename>, and then run the script with the MAC address of the device you want to connect to as an argument.

Usage: bluetooth-connect.sh [--pair] <MAC address>

  • --pair: Automatically pair with the device if it's not already paired.
  • <MAC address>: The MAC address of the Bluetooth device to connect to.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A shell script that automates connecting to a Bluetooth device using its MAC address with `bluetoothctl`, useful for Raspberry Pi and IoT projects.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages