Packages

An OTP application for reading and parsing GPS data written in Elixir. Will attach to an serial port, and provide positions to subscribers. Distributes positions using GenStage.

Current section

Files

Jump to
xgps lib tools.ex
Raw

lib/tools.ex

defmodule XGPS.Tools do
def hex_string_to_int(string) do
string |> Base.decode16! |> :binary.decode_unsigned
end
def int_to_hex_string(int) do
int |> :binary.encode_unsigned |> Base.encode16
end
end