Skip to content

Commit

Permalink
chore: Update MQTT subscribe topic to "/device/+" in default configur…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
vitorfdl committed Jun 26, 2024
1 parent ae13302 commit 0bcc3c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export TAGOIO__RELAY__MQTT__BROKER_TLS_CERT=""
export TAGOIO__RELAY__MQTT__BROKER_TLS_KEY=""

# Subscribe to multiple topics
export TAGOIO__RELAY__MQTT__SUBSCRIBE=["/tago/#"]
export TAGOIO__RELAY__MQTT__SUBSCRIBE=["/device/#"]

# Change the path to the configuration file
export TAGOIO__RELAY__CONFIG_PATH="/root/.config/.tagoio-mqtt-relay.toml"
Expand All @@ -208,12 +208,12 @@ Repl
**Using Ngrok:**
```bash
ngrok tcp 3001
ngrok http https://localhost:3000
```
**Using Tailscale:**
```bash
ngrok funnel 3001
ngrok funnel 3000
```
4. **Network Middleware Endpoint:**
To enable the Middleware Endpoint, you need to set the field `Middleware Endpoint` in your Network at TagoIO to the generated URL (e.g., https://abcd1234.ngrok.io) as your Middleware Endpoint in TagoIO.
Expand Down
2 changes: 1 addition & 1 deletion examples/basic-docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
# - TAGOIO__RELAY__MQTT__TLS_ENABLED="false"
# - TAGOIO__RELAY__MQTT__ADDRESS="localhost"
# - TAGOIO__RELAY__MQTT__PORT="1883"
# - TAGOIO__RELAY__MQTT__SUBSCRIBE=["/device/#"]
# - TAGOIO__RELAY__MQTT__SUBSCRIBE=["/device/#"]
# - TAGOIO__RELAY__MQTT__USERNAME="my-username"
# - TAGOIO__RELAY__MQTT__PASSWORD="my-password"
# - TAGOIO__RELAY__MQTT__BROKER_TLS_CA=""
Expand Down
2 changes: 1 addition & 1 deletion src/default_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ client_id="tagoio-relay" # Default is tagoio-relay
tls_enabled=false
address="localhost"
port=1883
subscribe=["/tago/#", "/tago/+"] # MQTT topics to subscribe to
subscribe=["/tago/+"] # MQTT topics to subscribe to
username="my-username"
password="my-passowrd"
# broker_tls_ca="" # The CA certificate. Alternative to username and password
Expand Down

0 comments on commit 0bcc3c6

Please sign in to comment.