Hi, I need to determine if the following payload is a “bulk” upload or not. A given particle boron will assemble a payload of 1-9 events. Each event will have temp1, temp2, batt and a timestamp. The payload will be sent through the particle cloud to ubidots. I can assemble the json payload on the device or i can use a json template on the particle console. I have been assembling an array on the device, raw it looks like this:
{ “array”: [{“temperature1”: 26.535999,“temperature2”: 26.535999,“battery”: 1.128500,“timestamp”: 1722892093},{“temperature1”: 26.535999,“temperature2”: 26.535999,“battery”: 1.128500,“timestamp”: 1722892094},{“temperature1”: 26.535999,“temperature2”: 26.535999,“battery”: 1.128500,“timestamp”: 1722892095},{“temperature1”: 26.535999,“temperature2”: 26.343000,“battery”: 1.128500,“timestamp”: 1722892096},{“temperature1”: 26.535999,“temperature2”: 26.343000,“battery”: 1.128500,“timestamp”: 1722892097},{“temperature1”: 26.535999,“temperature2”: 26.343000,“battery”: 1.128250,“timestamp”: 1722892098}]}
then I have been using this template on the particle console:
{
"array": [
{{#data}}
{
"temperature1": "{{{t1}}}",
"temperature2": "{{{t2}}}",
"battery": "{{{b}}}",
"timestamp": "{{{ts}}}000"
},
{{/data}}
{}
]
}
I have been sending this to (shortened): /devices/{{{PARTICLE_DEVICE_ID}}}/_/bulk/values]
Everything looks good on the device, particle side, but no events or data are showing up on the ubidots side. From the particle console, I did send a Test to ubidots and my device ID did arrive correctly. So, I’m not sure what i’m doing wrong.
Perhaps what I’m doing is not a ‘bulk’ payload?
Looking for some guidance on what I’m doing wrong.
Thanks