ble-mqtt
v1.0.0
Published
Forwards BLE advertisements to MQTT
Downloads
2
Readme
ble-mqtt
Forwards BLE advertisements to MQTT. Based on EspruinoHub.
yarn global add ble-mqtt
ble-mqtt -c /path/to/config.json
Running through Docker
The below commands expect the config.json
to be in /etc/ble-mqtt
.
docker build --no-cache -t ble-mqtt:latest .
docker run -d \
--rm \
--name ble-mqtt \
--net=host \
--device /dev/ttyAMA0 \
-v /etc/ble-mqtt:/etc/ble-mqtt \
ble-mqtt:latest
Running the Docker container as a systemd service
- Copy
ble-mqtt.service
to/etc/systemd/system/
- To enable start after boot, run
sudo systemctl enable ble-mqtt
- Run
sudo service ble-mqtt start