Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pinpox/mqtt-send
CLI tool to send MQTT messages to a topic
https://github.com/pinpox/mqtt-send
cli mqtt mqtt-client nix nix-flake
Last synced: 4 days ago
JSON representation
CLI tool to send MQTT messages to a topic
- Host: GitHub
- URL: https://github.com/pinpox/mqtt-send
- Owner: pinpox
- Created: 2024-07-22T09:16:47.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-22T10:02:36.000Z (4 months ago)
- Last Synced: 2024-10-17T16:28:33.917Z (21 days ago)
- Topics: cli, mqtt, mqtt-client, nix, nix-flake
- Language: Go
- Homepage: https://pablo.tools
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mqtt-send
Simple CLI tool to send MQTT messages to a topic. The message is read from
stdin, connection parameters can be provided via flags.## Usage
```
Usage of ./mqtt-send:
-broker string
[BROKER] Broker address (default "birne")
-cliend-id string
[CLIEND_ID] Client ID to send as (default "mqtt-send")
-password string
[PASSWORD] Password for the broker connection (default "mosquitto")
-port int
[PORT] Broker port (default 1883)
-topic string
[TOPIC] Topic to send to (default "awtrix/custom/mqtt-send")
-user string
[USER] User for the broker connection (default "pinpox")
```Settings can be specified by flags or the shown `[ENVIRONMENT_VAR]`.
### Example
```sh
echo '{ "text": "this is a test form mqtt-send", "icon": 92, "color": "ff0000" }' | ./mqtt-send
```