I get a payload from a BLE IOT Gateway with multiple BLE devices connected which looks like this:
[
{
"timestamp": "2023-04-19T20:44:26.344Z",
"type": "Gateway",
"mac": "AC233FC0D394",
"gatewayFree": 21,
"gatewayLoad": 0.33000000000000002
},
{
"timestamp": "2023-04-19T20:44:26.343Z",
"type": "S4",
"mac": "AC233FAC728A",
"bleName": "",
"rssi": -62,
"battery": 100,
"unlocked": false,
"uninstalled": false,
"triggered": false
},
{
"timestamp": "2023-04-19T20:44:26.491Z",
"type": "V3Info",
"mac": "AC233FAA8734",
"bleName": "",
"rssi": -36,
"battery": 100,
"version": "v3.0.7"
},
{
"timestamp": "2023-04-19T20:44:26.948Z",
"type": "V3S3",
"mac": "AC233FAA8734",
"bleName": "S3",
"rssi": -48,
"temperature": 19.18,
"humidity": 50.850000000000001,
"screenStatus": 0,
"sensorStatus": 0,
"notHumidity": 0
}
]
How do I query this. For example what if I want to query for type = s4 and unlocked = false
Thanks!
Hi, thanks for your response. I've already looked at that page, but all the examples are named arrays. So I'm really looking for an example for this problem.
Hi. Answer updated with an example query.