Lora Gateway Bridge command example

Can someone provide an example running a command remotely on the gateway though the gateway bridge? I can’t seem to get it to work.

To run the “shutdown” example provided in the default config file, I assume you would publish to the topic

"gateway/{{ .GatewayID }}/command/reboot"

Then what data would you send? Or am I on the wrong track here?

Thanks!

1 Like

Negative, you want that topic to end with command/exec. The format of the payload is in the last section here:

https://www.loraserver.io/lora-gateway-bridge/payloads/commands/

Note that by default the Gateway Bridge uses protobuf format, so if you want to use a simple command line publish for testing, it may be easier to temporarily switch back to JSON.

1 Like

I’ll give that a try, thanks