AutoApi.SeatsState.to_bin

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

Specs

to_bin(t()) :: binary()

Parse state to bin

iex> state = %AutoApi.SeatsState{persons_detected: [%AutoApi.Property{data: %{location: :rear_center, detected: :detected}}]} iex> AutoApi.SeatsState.to_bin(state) <<2, 0, 5, 1, 0, 2, 4, 1>>