I’ve been trying to use mosquitt_pub to send a reboot command to a gateway. I had this figured when the marshaler in /etc/chirpstack-gateway-bridge/chirpstack-gateway-bridge.toml is set to json, not protobuf. However, I have a gateway deployed in the field where I forgot to change this configuration (all other aspects of the configuration are correct and working). I was wondering how to phrase the same message I had with a json message in protobuf. The original message is as such:
mosquitto_pub -t “gateway/{{ Gateway ID }}/command/exec” -f mqtt.json --debug
If you configure [commands.commands.reboot] then reboot is the command that must be referenced within the Protobuf message (e.g. it is the label referencing this command config).
The command="reboot" in the chirpstack-gateway-bridge.toml file must point to an executable that will be executed. E.g.