lpitka
October 23, 2019, 9:29pm
#1
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
bconway
October 24, 2019, 12:12am
#2
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
lpitka
October 24, 2019, 7:57pm
#3
I’ll give that a try, thanks