Aprs.Object (aprs v2.0.1)

View Source

APRS object parsing.

Summary

Functions

Parse an APRS object report, with or without its ; data type indicator.

Functions

parse(data)

@spec parse(String.t()) :: object_map()

Parse an APRS object report, with or without its ; data type indicator.

The name is a fixed nine bytes, followed by the * (live) or _ (killed) status byte and a seven-byte timestamp. The remainder is parsed as an uncompressed or compressed position followed by the shared comment pipeline. Returns :object_name, :live_killed, :alive, :timestamp and the position fields; a report too short to split comes back as :raw_data alone.