8883 · MQTT 3.1.1/5 · TLS 1.2+
8084 · MQTT 3.1.1/5 · WSS
8083 · MQTT 3.1.1/5 · WS
1883 · Plain MQTT
Windows PowerShell
$env:COWTH_SANDBOX_CREDENTIAL_TOKEN = "token-from-dashboard"
cowthctl sandbox profile init --user somchai
Linux curl -fsSL https://download.cowth.dev/install.sh | sh
export COWTH_SANDBOX_CREDENTIAL_TOKEN="token-from-dashboard"
cowthctl sandbox profile init --user somchai
cowthctl sub --user somchai -t "sensors/#"
cowthctl pub --user somchai -t sensors/temperature -m "25.5"
cowthctl pub --loop --user somchai -t sensors/temperature -m "25.5" -l -i 0.1
MQTTX / Paho.js URL wss://broker.cowth.dev:8084/mqtt topic sandbox/<username>/test
mosquitto_sub -h broker.cowth.dev -p 8883 --cafile /etc/ssl/certs/ca-certificates.crt -u <username> -P <password> -t "sandbox/<username>/#"
mosquitto_pub -h broker.cowth.dev -p 8883 --cafile /etc/ssl/certs/ca-certificates.crt -u <username> -P <password> -t "sandbox/<username>/test" -m "Hello Cowth"
mosquitto_sub -h broker.cowth.dev -p 1883 -u <username> -P <password> -t "sandbox/<username>/#"
mosquitto_pub -h broker.cowth.dev -p 1883 -u <username> -P <password> -t "sandbox/<username>/test" -m "lab only"