AutoApi.UniversalState.to_bin
You're seeing just the function
to_bin
, go back to AutoApi.UniversalState module for more information.
Specs
Parse state to bin
iex> state = %AutoApi.UniversalState{vin: %AutoApi.Property{data: "VIN00000000000000"}} iex> AutoApi.UniversalState.to_bin(state) <<0xA3, 0x0, 0x14, 0x1, 0x0, 0x11, 0x56, 0x49, 0x4E, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30>>
iex> state = %AutoApi.UniversalState{brand: %AutoApi.Property{data: :jeep}} iex> AutoApi.UniversalState.to_bin(state) <<0xA4, 0x0, 0x4, 0x1, 0x0, 0x1, 0x14>>