Aprs.KISSHelpers (aprs v2.0.1)

View Source

KISS/TNC2 conversion helpers for APRS.

Summary

Functions

Unwrap a KISS data frame into its TNC2 payload.

Wrap a TNC2 payload in a KISS data frame, escaping C0 and DB bytes.

Functions

kiss_to_tnc2(arg1)

@spec kiss_to_tnc2(binary()) :: binary() | map()

Unwrap a KISS data frame into its TNC2 payload.

Strips the C0 00 header and trailing C0, and undoes KISS byte stuffing. Anything that is not a KISS data frame returns an error map with :error_code and :error_message.

tnc2_to_kiss(tnc2)

@spec tnc2_to_kiss(binary()) :: binary()

Wrap a TNC2 payload in a KISS data frame, escaping C0 and DB bytes.