cayenne_lpp v0.1.0 Cayenne.LPP.Type.Gyrometer View Source

Cayenne LPP type for a 3-axis gyrometer

Example

alias Cayenne.LPP.{Buffer, Encoder}
alias Cayenne.LPP.Type.Gyrometer

buffer =
  [x: 24.474, y: -1.104, z: -5.456]
  |> Gyrometer.new()
  |> Encoder.encode()

Buffer.to_string(buffer) # "865F9AFBB0EAB0"
Buffer.size(buffer) # 7

Link to this section Summary

Link to this section Types

Link to this type

t()

View Source
t() :: %Cayenne.LPP.Type.Gyrometer{x: number(), y: number(), z: number()}

Link to this section Functions

Link to this function

new(list)

View Source
new(x: number(), y: number(), z: number()) :: t()