Skip to content

Instantly share code, notes, and snippets.

@beerriot
Created February 20, 2017 22:18
Show Gist options
  • Save beerriot/69df0e224cab7ae18f081c43b1e2058b to your computer and use it in GitHub Desktop.
Save beerriot/69df0e224cab7ae18f081c43b1e2058b to your computer and use it in GitHub Desktop.
Beer IoT (Part 4) example code: Altimeter Posting
now = he.now() -- time that we took the reading
-- "f" is "floating point type
-- port, time, type, value
he.send("x", now, "f", x)
he.send("y", now, "f", y)
he.send("z", now, "f", z)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment