AutoApi.LightConditionsState.to_bin

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

Specs

to_bin(t()) :: binary()

Parse state to bin

iex> state = %AutoApi.LightConditionsState{outside_light: %AutoApi.Property{data: %{value: 25.17, unit: :lux}}} iex> AutoApi.LightConditionsState.to_bin(state) <<1, 0, 13, 1, 0, 10, 17, 0, 64, 57, 43, 133, 30, 184, 81, 236>>