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

Cayenne LPP type for GPS

Example

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

buffer =
  [lat: 51.4163, lon: 6.5433, alt: 49]
  |> GPS.new()
  |> Encoder.encode(temperature)

Buffer.to_string(buffer) # "8807D87300FF99001324"
Buffer.size(buffer) # 10

Link to this section Summary

Link to this section Types

Link to this type

t()

View Source
t() :: %Cayenne.LPP.Type.GPS{alt: number(), lat: number(), lon: number()}

Link to this section Functions

Link to this function

new(list)

View Source
new(lat: number(), lon: number(), alt: number()) :: t()