saveDataCsv

fun saveDataCsv(uri: Uri, filterPortnum: Int? = null)

Export all persisted packet data to a CSV file at the given URI.

The CSV will include all packets, or only those matching the given port number if specified. Each row contains: date, time, sender node number, sender name, sender latitude, sender longitude, receiver latitude, receiver longitude, receiver elevation, received SNR, distance, hop limit, and payload.

Parameters

uri

The destination URI for the CSV file.

filterPortnum

If provided, only packets with this port number will be exported.