1.0.0 • Published 6 years ago
ble-mqtt v1.0.0
ble-mqtt
Forwards BLE advertisements to MQTT. Based on EspruinoHub.
yarn global add ble-mqtt
ble-mqtt -c /path/to/config.jsonRunning 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:latestRunning the Docker container as a systemd service
- Copy
ble-mqtt.serviceto/etc/systemd/system/ - To enable start after boot, run
sudo systemctl enable ble-mqtt - Run
sudo service ble-mqtt start
1.0.0
6 years ago