Exmbus.Parser.Apl (Exmbus v0.6.0-rc.0)

View Source

Parser for the APL layer. Dispatches to the correct parser based on the frame type of the TPL layer.

If you don't have a TPL layer, you most likely want call the FullFrame.parse/1 instead.

Summary

Functions

Decode the Application Layer and return one of the Apl frame structs.

Functions

parse(ctx)

Decode the Application Layer and return one of the Apl frame structs.

The Application Layer consists of N number of records where N >= 0, and some optional manufacturer specific data.

The function assumes that the remaining binary data is the APL layer data.

Note

This function dispatches to the underlying frame type parser based on the TPL layer. If the TPL layer is not present, it defaults to the full frame parser.