Skip to content

Commit

Permalink
Add startup and reset commands
Browse files Browse the repository at this point in the history
  • Loading branch information
bcopy committed May 24, 2022
1 parent dd859cc commit f1275c0
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion modules/gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,20 @@ echo "`pwd`/src/main/python `pwd`/src/test/python" > usquad-venv/lib/python3.8/s

# How to use

Execute
* Ensure that your MQTT broker is running on port 1883

* Execute:
```
. ./setup-venv.sh
python -m microsquad.gateway.mqtt
```

* Follow the instructions given by Bitio to detect your Micro:bit and the gateway should start.

# How to reset your broker's persistent data (Mosquitto)

```bash
sudo service mosquitto stop
sudo rm /var/lib/mosquitto/mosquitto.db
sudo service mosquitto start
```

0 comments on commit f1275c0

Please sign in to comment.