AutoApi.HomeChargerState.to_bin

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

Specs

to_bin(t()) :: binary()

Parse state to bin

iex> state = %AutoApi.HomeChargerState{charging_status: %AutoApi.Property{data: :plugged_in}} iex> AutoApi.HomeChargerState.to_bin(state) <<1, 4::integer-16, 1, 0, 1, 1>>