Bluetooth-MQTT-Switcher
Description
Bluetooth-MQTT-Switcher is a program that allows you to easily switch Bluetooth devices between devices that do not support Multipoint and have Bluetooth versions below 5.0. The program intercepts paired devices, enabling switching without the need to manually disconnect and reconnect.
Requirements
To run the program, an MQTT server is required in your home network. The supported operating systems are Linux and macOS. For macOS, the installation of the blueutil utility is required.
Installation
git clone https://github.com/Toxblh/Bluetooth-MQTT-Switcher
cd Bluetooth-MQTT-Switcher
yarn
# dev mode:
yarn start
# build pack:
yarn package
# folder with app created ./bluetooth-mqtt-switcher-xXx-xXx
MacOS
To install blueutil on macOS, use Homebrew:
brew install blueutil
Quick Start
Deploying an MQTT Server
To quickly deploy an MQTT server, you can use Docker. Here is an example of how to do it:
- Install Docker if it is not already installed. Installation instructions can be found here.
- Run the MQTT server using the following command:
docker run -d --name mosquitto -p 1883:1883 eclipse-mosquitto
This command will deploy Eclipse Mosquitto, a lightweight and popular MQTT broker.
Setting up and Running the Program
After installing the necessary components, configure and run the program. Ensure that your MQTT server is running and accessible in your home network.
Usage
To use the program, follow the setup instructions to specify the address of your MQTT server.
Support
If you have any questions or issues, please create an issue in the project’s GitHub repository.