| Crates.io | mqtt_to_system_command |
| lib.rs | mqtt_to_system_command |
| version | 0.9.0 |
| created_at | 2025-11-18 12:13:47.219462+00 |
| updated_at | 2025-11-18 12:13:47.219462+00 |
| description | An MQTT client that runs command line commands based on a configuration file or arbitrary input. |
| homepage | https://github.com/gstavrinos/mqtt_to_system_command/ |
| repository | https://github.com/gstavrinos/mqtt_to_system_command/ |
| max_upload_size | |
| id | 1938362 |
| size | 37,647 |
Trigger system command execution through MQTT.
mqtt_username: String that contains the username in case the MQTT connection requires credentials. Empty by defaultmqtt_password: String that contains the password in case the MQTT connection requires credentials. Empty by defaultmqtt_client_name: String that contains the name of the client to be connected to the MQTT broker. Defaults to mqtt_to_system_commandmqtt_host: String the contains the broker's IP or hostname. Defaults to localhostmqtt_port: Integer that contains the MQTT broker's port. Defaults to 1883arbitrary_command_topic: String that contains the topic to listen to for arbitrary commands (The first mode). Defaults to mqtt_to_system_command/commandcommand_index_topic: String that contains the topic to listen to for a command index. Defaults to mqtt_to_system_command/command_indexcommands: Vector of strings that contain the predefined commands to be executed based on the received index. Empty by default. The command_index_topic is not subscribed to if the commands parameter is emptyOptionally, the first command line argument is the yaml configuration file. It defaults to config/conf.yaml.