Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marianoguerra/fixstt
erlang library to read/write fixed size status messages
https://github.com/marianoguerra/fixstt
Last synced: about 1 month ago
JSON representation
erlang library to read/write fixed size status messages
- Host: GitHub
- URL: https://github.com/marianoguerra/fixstt
- Owner: marianoguerra
- Created: 2014-11-25T13:35:16.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-27T10:26:31.000Z (almost 10 years ago)
- Last Synced: 2023-04-21T08:16:31.353Z (over 1 year ago)
- Language: Makefile
- Size: 141 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
fixstt
======library to write/read fixed length status messages.
this library is developed to be used for `flaviodb `_
but can be used for any other purpose, flexibility isn't its strength :)description
-----------a fixstt entry contains the following fields:
* id: 64 bit integer, unique increasing id that identifies this message in this stream
* lat: 64 bit float, optional latitude (double) set it to 9001 when no data
* lng: 64 bit float, optional longitude (double) set it to 9001 when no data
* date: 64 bit integer UTC unix timestamp in milliseconds when the record was created
* len: 16 bit integer, contains the length of the msg without padding
* ref: 64 bit integer, user defined meaning, for example can be used to store an id to extra data, or an offset in another file where extra data is stored
* type: 16 bit integer, can be used to define the msg type, payload content type etc
* msg: zero padded payload to fill the total msg size (default 512 bytes)in erlang syntax:
.. code:: erlang
<>