Skip to content

Commit

Permalink
Merge branch 'master' of github.com:bigclownlabs/bch-usb-gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
blavka committed Sep 24, 2017
2 parents 650fff7 + 47358bc commit fa4f525
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ It works with Python 2.7+ and Python 3.5+ environments and it has been tested un
```
LED turns off

## Node-Red buttons

If you use Node-Red, you can import text below to create buttons in your flow. You can list, pair and delete nodes with a click of the mouse.

```
[{"id":"3bb38e8.d76af72","type":"mqtt in","z":"b1ad2115.7445a","name":"","topic":"#","qos":"2","broker":"ba3b2e25.7c8b7","x":190,"y":260,"wires":[["4a1ce85.3017d18"]]},{"id":"4a1ce85.3017d18","type":"debug","z":"b1ad2115.7445a","name":"","active":true,"console":"false","complete":"false","x":370,"y":260,"wires":[]},{"id":"4ca43c81.0071a4","type":"inject","z":"b1ad2115.7445a","name":"All gateway info","topic":"gateway/all/info/get","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"x":219,"y":352,"wires":[["a6c1e618.3996d8"]]},{"id":"a6c1e618.3996d8","type":"mqtt out","z":"b1ad2115.7445a","name":"","topic":"","qos":"","retain":"","broker":"ba3b2e25.7c8b7","x":404,"y":353,"wires":[]},{"id":"28b390cb.9d42d","type":"inject","z":"b1ad2115.7445a","name":"Enrollment start","topic":"gateway/192.168.1.100/enrollment/start","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"x":220,"y":480,"wires":[["b48b000f.19c45"]]},{"id":"b48b000f.19c45","type":"mqtt out","z":"b1ad2115.7445a","name":"","topic":"","qos":"","retain":"","broker":"ba3b2e25.7c8b7","x":405,"y":481,"wires":[]},{"id":"ab7eabbc.aa0988","type":"inject","z":"b1ad2115.7445a","name":"Enrollment stop","topic":"gateway/192.168.1.100/enrollment/stop","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"x":220,"y":520,"wires":[["a7ab52a6.97a14"]]},{"id":"a7ab52a6.97a14","type":"mqtt out","z":"b1ad2115.7445a","name":"","topic":"","qos":"","retain":"","broker":"ba3b2e25.7c8b7","x":405,"y":521,"wires":[]},{"id":"ca19077c.ed3be8","type":"inject","z":"b1ad2115.7445a","name":"List of paired nodes","topic":"gateway/192.168.1.100/nodes/get","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"x":230,"y":400,"wires":[["d6c723e6.a72de"]]},{"id":"d6c723e6.a72de","type":"mqtt out","z":"b1ad2115.7445a","name":"","topic":"","qos":"","retain":"","broker":"ba3b2e25.7c8b7","x":405,"y":401,"wires":[]},{"id":"8019bb1c.a76098","type":"inject","z":"b1ad2115.7445a","name":"purge all nodes","topic":"gateway/192.168.1.100/nodes/purge","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"x":220,"y":700,"wires":[["3ea8f41.1f66f0c"]]},{"id":"3ea8f41.1f66f0c","type":"mqtt out","z":"b1ad2115.7445a","name":"","topic":"","qos":"","retain":"","broker":"ba3b2e25.7c8b7","x":405,"y":701,"wires":[]},{"id":"86686e4a.8480b","type":"inject","z":"b1ad2115.7445a","name":"auto pair start","topic":"gateway/192.168.1.100/automatic-pairing/start","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"x":210,"y":580,"wires":[["8fb42dcb.6d776"]]},{"id":"8fb42dcb.6d776","type":"mqtt out","z":"b1ad2115.7445a","name":"","topic":"","qos":"","retain":"","broker":"ba3b2e25.7c8b7","x":405,"y":581,"wires":[]},{"id":"5962b3a1.307a6c","type":"inject","z":"b1ad2115.7445a","name":"auto pair stop","topic":"gateway/192.168.1.100/automatic-pairing/stop","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"x":210,"y":620,"wires":[["63b0aab2.6b8444"]]},{"id":"63b0aab2.6b8444","type":"mqtt out","z":"b1ad2115.7445a","name":"","topic":"","qos":"","retain":"","broker":"ba3b2e25.7c8b7","x":405,"y":621,"wires":[]},{"id":"ba3b2e25.7c8b7","type":"mqtt-broker","z":"","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""}]
```

## License

Expand Down

0 comments on commit fa4f525

Please sign in to comment.