-
AuthorPosts
-
-
November 10, 2021 at 5:55 am #1215SumanParticipant
I am able to successfully send IoT data from a sensor to Taqtile platform. But there is no provision to send multiple sensor data using the same single API. This is the API I am using to snide data from an IoT Edge computer that is running Node Red.
{
“query”: “mutation($data: MeasurementInput!){addMeasurement(data: $data)}”,
“variables”: {
“data”: {
“meterId”: “21”,
“assetId”: “12”,
“value”: 95,
“source” : “Manual”
}
}
}
The meterId above is only for Temperature, I would like to send pressure and battery percentage as well that have separate meterIds. How do I send them in the same query since data is an object and does not take an array as a parameter? For context I am using a temperature/pressure sensor that send temperature, pressure and battery percentage in each reading. I do not want to make 3 API calls for 1 reading.
Thanks,
Suman Ray.
-
November 11, 2021 at 10:14 am #1217MaureenParticipant
Hi Suman,
Today, you are correct in that you’d need to make separate API calls. It could be possible for us to accommodate sending multiple sensor data through the API with some adjustments. We can add it to the dev queue for evaluation. If there’s an urgency behind this ask, please talk to your Account Manager.
Thank you,
Maureen
-
-
AuthorPosts
- You must be logged in to reply to this topic.