Skip to content

anthill/pheromon-codecs

Repository files navigation

pheromon-codecs

Build Status

Function to encode data used by pheromon sources.

List of available codecs

signalStrengths :

This codec allows to encode measurements matching this pattern :

{
  date: Date(),
  devices:
  [ 
    {
      signal_strength: int,
      std: int // standard deviation (optionnal)
    },
    ...
  ] 
}

It is used in 6sense in order to send a list of devices currently visible.

trajectories :

This codec allows to encode trajectories matching this pattern :

[
  [
    {
      date: Date(),
      signal_strength: int
    },
    ...
  ],
  [
    {
      date: Date(),
      signal_strength: int
    },
    ...
  ],
  ...
]

It is used in 6sense in order to send all trajectories of all devices seen everyday.

License

MIT

About

Function to encode data used by pheromon sources

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published