ble-mqtt

1.0.0 • Public • Published

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

  1. Copy ble-mqtt.service to /etc/systemd/system/
  2. To enable start after boot, run sudo systemctl enable ble-mqtt
  3. Run sudo service ble-mqtt start

Readme

Keywords

none

Package Sidebar

Install

npm i ble-mqtt

Weekly Downloads

1

Version

1.0.0

License

MPL-2.0

Unpacked Size

33.2 kB

Total Files

13

Last publish

Collaborators

  • rsmeral