2025-05-28 13:35:03 +00:00
|
|
|
# amqtt
|
2025-05-20 23:40:56 +00:00
|
|
|
|
2025-05-21 13:53:46 +00:00
|
|
|
`amqtt` is a command-line script for running a MQTT 3.1.1 broker.
|
2025-05-20 23:40:56 +00:00
|
|
|
|
2025-05-21 13:53:46 +00:00
|
|
|
## Usage
|
2025-05-20 23:40:56 +00:00
|
|
|
|
2025-05-21 13:53:46 +00:00
|
|
|
`amqtt` usage:
|
2025-05-20 23:40:56 +00:00
|
|
|
|
2025-05-21 13:53:46 +00:00
|
|
|
```
|
|
|
|
amqtt --version
|
|
|
|
amqtt (-h | --help)
|
|
|
|
amqtt [-c <config_file> ] [-d]
|
|
|
|
```
|
2025-05-20 23:40:56 +00:00
|
|
|
|
2025-05-21 13:53:46 +00:00
|
|
|
## Options
|
2025-05-20 23:40:56 +00:00
|
|
|
|
2025-05-21 13:53:46 +00:00
|
|
|
- `--version` - amqtt version information
|
|
|
|
- `-h, --help` - Display `amqtt_sub` usage help
|
|
|
|
- `-c` - Set the YAML configuration file to read and pass to the client runtime.
|
2025-05-20 23:40:56 +00:00
|
|
|
|
2025-05-21 13:53:46 +00:00
|
|
|
## Configuration
|
2025-05-20 23:40:56 +00:00
|
|
|
|
2025-05-21 13:53:46 +00:00
|
|
|
Without the `-c` argument, the broker will run with the following, default configuration:
|
2025-05-20 23:40:56 +00:00
|
|
|
|
2025-05-21 13:53:46 +00:00
|
|
|
```yaml
|
2025-05-28 11:45:12 +00:00
|
|
|
--8<-- "../amqtt/amqtt/scripts/default_broker.yaml"
|
2025-05-21 13:53:46 +00:00
|
|
|
```
|
2025-05-20 23:40:56 +00:00
|
|
|
|
2025-05-28 11:45:12 +00:00
|
|
|
Using the `-c` argument allows for configuration with a YAML structured file; see [broker configuration](broker_config.md).
|