Knowledge Base Discussions Community Send multiple IOT meter readings using API

  • Send multiple IOT meter readings using API

     Maureen updated 7 months, 3 weeks ago 2 Members · 2 Posts
  • Suman

    Member
    November 10, 2021 at 5:55 am

    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.

  • Maureen

    Member
    November 11, 2021 at 10:14 am

    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

Viewing 1 - 2 of 2 replies

Log in to reply.

Original Post
0 of 0 posts June 2018
Now