View Source KNXex.Frames.FrameEncoder protocol (knxex v0.1.0)

Frame Encoder protocol for the Multicast Server.

Link to this section Summary

Functions

Encodes the structure into a bitstring for the request payload.

Returns the correct request type for the given datatype.

Link to this section Types

Link to this section Functions

Link to this function

encode(datatype, protocol_version)

View Source
@spec encode(t(), protocol_version :: integer()) ::
  {:ok, bitstring()} | {:error, term()}

Encodes the structure into a bitstring for the request payload.

Link to this function

get_request_type(datatype)

View Source
@spec get_request_type(t()) :: KNXex.Frame.request_type()

Returns the correct request type for the given datatype.