Kitt.Encoder.encode_frame
You're seeing just the function
encode_frame
, go back to Kitt.Encoder module for more information.
Specs
Takes a Kitt message struct and converts it to either a binary or hex version of the message data wrapped in a Message Frame structure tagged with the appropriate ID number.
The default output format is hexadecimal. Optionally define the desired
output by passing the keyword flag format: :hex | :binary
.
Returns the encoded message wrapped in an :ok
tuple or an {:error, reason}
tuple.