Jump to content









Photo

Send multiple datapoints

API hURL streams

  • Please log in to reply
1 reply to this topic

#1 bizzoxiv

bizzoxiv

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 28 October 2015 - 09:33 AM

Hi everyone,

I would like to send in one stream multiple datapoints of the same channel with different dates.

 

For exemple I would like to send at the same time :

 

at 28/10/2015 10:30:00.0 , CH1=0

at 28/10/2015 10:30:01.0 , CH1=1

at 28/10/2015 10:30:02.0 , CH1=2

at 28/10/2015 10:30:03.0 , CH1=3

 

 

Is it possible ?

 

Thank you.

 

bizzoxiv



#2 sdeancos

sdeancos

    Master of Puppets

  • Members
  • PipPipPip
  • 107 posts
  • LocationMadrid, Spain.

Posted 02 November 2015 - 05:35 PM

Hi,

 

You can send an array in json data, for example:

 

{
        "protocol":"v2",
        "at":1355837673,
        "device":"test@carriots",
        "data": [

           {"at": "28/10/2015 10:30:00.0", "CH1": 0},

           {"at": "28/10/2015 10:30:01.0", "CH1": 1},

           {"at": "28/10/2015 10:30:02.0", "CH1": 2},

           {"at": "28/10/2015 10:30:03.0", "CH1": 3},

        ],
        "checksum":""
}
 

 

I hope this help you.

 

BR.







Also tagged with one or more of these keywords: API, hURL, streams

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users