TheThingsArchive / ttn

The Things Network Stack V2
https://www.thethingsnetwork.org
MIT License
461 stars 279 forks source link

`ttnctl export-all` does not export frame counters and last seen fields. #787

Closed neoaggelos closed 3 years ago

neoaggelos commented 3 years ago

This is a bug report for ttnctl.

What do you want to do?

Export all end devices from a v2 application, including their frame counters.

What went wrong or what is missing?

GetDevicesForApplication does not query the Network Server, and thus it does not retrieve their frame counters. The final export has 0 values for these fields.

Can you fix this yourself and submit a pull request?

yes

neoaggelos commented 3 years ago

Won't do. https://github.com/TheThingsNetwork/lorawan-stack-migrate should be used instead.