Function to encode data used by pheromon sources.
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.
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.
MIT