AutoApi.ChargingState.to_bin

You're seeing just the function to_bin, go back to AutoApi.ChargingState module for more information.

Specs

to_bin(t()) :: binary()

Parse state to bin

iex> state = %AutoApi.ChargingState{status: %AutoApi.Property{data: :fast_charging}} iex> AutoApi.ChargingState.to_bin(state) <<23, 0, 4, 1, 0, 1, 8>>