Yep, Gateway Server updates the gateway statistics every 4 to 6 minutes (random to distribute load). The RX and TX rates indicate the packets per hour. This is only indicative for the busyness and liveness of gateways. Although you can, I would discourage polling these values and converting them back to actual numbers (based on consecutive updatedAt timestamps), because you’ll be missing updates and with many gateways you’ll be hitting the API rate limiter.
We are working on a separate API for routing statistics, including per-gateway aggregates over time.
Very useful API, thanks. My gateway moved (Antenna location changed thanks to GPS + Location correctly set in console). How long will it take to get the new value through the API ? (Is it minutes, hours, days? )
You mention that people should cache the results when they query the API.
→ Would it be possible to add an ETag header in the HTTP response?
This way a client cache can verify if certain data/content has changed without overloading the API by doing a simple HEAD request and not af full GET request.
Hiya, this works nicely for the community edition, but I can’t get it working for our private instance. I assumed I just needed to change tenantID from ttn to our instance name, but that just returns an empty array. Is there some kind of authentication step I am missing?
Many thanks
Hi Johan. I have the same problem with my gateway. Also not on community edition, but the free tier cloud.
Have packetbroker allowing to route traffic. Set gateway to public. Etc, etc.
I thought it has something to do with the fact that I registered my gateway before on the V2 network. Then switched to V3 (community edition) and then switched to V3 (cloud) that it kinda messes up with id’s or something. Maybe didnt deregister the gateway in V2 the right way.
When I use the url’s from first post and try to query the individual gateway info I can query the gateway on the V2 network, stating it’s offline.
But V3, changing net id, etc… nothing.
I have tried to follow this procedure to hide my develop gateway location. However, in the api response the “location” is still present. How can I remove it?