Morey protocol is updated: added support of message type 0x0D BLE Advertisement report.
Report contains information about several BLE beacons, that are stored into ble.beacons array, e.g.:
{
"ble.beacons": [
{
"ad.count": 182,
"ble.event": 3,
"emerge.timestamp": 1648077900,
"id": "5B568A17D90E",
"last.ad.timestamp": 1648078061,
"payload.hex": "1EFF0600010920027AEC930CE3B5A4B11F8BCCE9D2F28415BFBF79BD70EBFE",
"rssi": -50
},
{
"ad.count": 252,
"ble.event": 3,
"emerge.timestamp": 1648077901,
"id": "8F061EBD130B",
"last.ad.timestamp": 1648078337,
"payload.hex": "1EFF0600010920029FB2D0DAA114E3AE6B6A4866ED50D2E8D47D549D12BB41",
"rssi": -88
},
{
"ad.count": 312,
"ble.event": 1,
"emerge.timestamp": 1648077901,
"id": "A6DDF02A7E66",
"last.ad.timestamp": 1648078967,
"payload.hex": "02011A020A0C0BFF4C00100605199B093708",
"rssi": -86
}
],
"channel.id": 166,
"ident": "1234",
"peer": "127.0.0.1:47316",
"protocol.id": 73,
"server.timestamp": 1649832680.059862,
"timestamp": 1649832680.059862
}
Mapping of BLE beacon's fields to flespi parameters is below:
- ID - id
- RSSI - rssi
- Time this node came in view - emerge.timestamp
- Time of this nodes most recent advertisement - last.ad.timestamp
- Count of advertisements since in view - ad.count
- Payload of most recent advertisement - payload.hex
- BLE Now Entered / Exited / Updated - ble.event