Commit 0cb27ef7 authored by Peter-Bernd Otte's avatar Peter-Bernd Otte

Update README.md

parent f7455f20
......@@ -3,7 +3,7 @@
## Usage
Start the server via
```bash
./fsp.py /dev/ttyUSB0
./fsp.py -v fsr-master /dev/ttyUSB0
```
and let it running. Exit with `CTRL+C`. It posts MQTT messages to `homie/[MQTTClientName]/[relaisid]` where [MQTTClientName] is a variable set in the python script and [relaisid] is a number between 1 and 127.
......@@ -13,6 +13,8 @@ To control the relais, send MQTT messages like
```bash
mosquitto_pub -t 'homie/fsr-ww/1/set' -m 0
```
to the broker.
to the broker with real numbers between 0 and 1 as a message.
Status updates are given immediatelly, if the state(FSR14) or brightness (FUD14) of the relais changes. Status messages are send with the retain flag on, but general response messages to `homie/[MQTTClientName]/messages` are send with retain set to false.
\ No newline at end of file
Status updates are given immediatelly, if the state(FSR14) or brightness (FUD14) of the relais changes.
Status messages are send with the retain flag on, but general response messages to `homie/[MQTTClientName]/messages` are
send with retain set to false.
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment