Bluetooh Low Energy to MQTT bridge for Raspberry Pi3
Get the project and install required dependencies
git clone [email protected]:ciotlosm/ble-bridge.git
cd ble-bridge
npm install
Install some pre-required packages
sudo apt-get update
sudo apt-get install -y libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev
Update your configuration by using the example
cp ble-bridge.json.example ble-bridge.json
Update ble-bridge.json to fit your mqtt settings
"mqtt": {
"host": "mqtts:https://example.duckdns.org",
"options": {
"username": "example_user",
"password": "example_pass"
}
}
./index.js
Copy ble-bridge.service file to /etc/systemd/system/ble-bridge.service and then:
sudo systemctl enable ble-bridge.service
sudo systemctl start ble-bridge.service
This project was inspired by two other projects: