Exmbus.Parser.Manufacturer (Exmbus v0.3.0)

View Source

Implements encode/decode for the 2-byte manufacturer flag ID

Summary

Functions

Decode from binary to string representation of manufacturer

Encode 3-letter manufacturer

Functions

decode(arg)

Decode from binary to string representation of manufacturer

iex> decode(<<0x93, 0x44>>)

encode(m)

Encode 3-letter manufacturer

iex> {:ok, <<0x93, 0x44>>} = encode("QDS")