Is it possible to receive the data as seen in the web console in a MQTT client?
The gateway data shown in the console are very useful to monitor activities over LoRa and provide information not always available in applications data. Unfortunately, the data are only transient and as the page regularly expires it is not possible to have long run data log.
I’ve tried to connect to the TTN MQTT broker, as with application, using the Gateway ID as user and the Gateway key, but the connection is refused.
Gateway API is currently not published – strictly speaking you could reverse-engineer the console code, but I still hope the V3 stack will open that door…
Then the packet forwarder sends JSON via UDP to 192.168.1.30 port 1688 everytime it sends/receive any data from/to the air. For mp_pkt_fwd the JSON looks like:
Note: poly_pkt_fwd use different JSON format and the first 12 bytes before JSON are binary data. So you have to strip them.
I use this to monitor in node-red how many unique devices use my GW. BTW @Charles use this way to display data on OLED screen in his GW, see oled.py source. So it isn’t hard to write python UDP server to forward required statistics to MQTT.