Hey everyone!
We're making use of nRFCloud on our nRF9160-based system.
I'm trying to populate the meta in the location history API.
The response is always empty, like this:
{
"deviceId": "nrf-352656101081837",
"serviceType": "GPS",
"insertedAt": "2022-12-06T13:35:20.785Z",
"uncertainty": "24.000000",
"lat": "68.000000",
"lon": "17.000000",
"meta": {}
}
I'm sending the data like this, as shown by the list messages API
{
"topic": "prod/XX/XX",
"deviceId": "nrf-XX",
"receivedAt": "2022-12-06T09:27:13.804Z",
"message": {
"messageType": "DATA",
"data": {
"acc": 24.000000,
"lng": 17.000000,
"lat": 68.000000,
"meta": {
"bat": 4167
}
}
"appId": "GNSS"
},
"tenantId": "XX"
}
As you see, I'm trying to pack the battery level in the same message, and I want to retrieve this data along with the location when using the location history API.
The actual message I encode and send is as such:
{"appId": "GNSS","messageType": "DATA", "data": {"lng": 17.000000.,"lat": 68.000000,"acc": 24.000000, "meta":{"bat":4363}}}
My question is: How can I pack this battery data in the location history meta?
Thank you all for all and any suggestions!
Kind regards,
Torje