Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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

<>