Ubidots Community

Get a value from Ubidots Particle Argon

Goodday

How do I use ubidots.get(“x”,“y”) - from the lib it looks like x is device label and y is variable label

thank you

Not to worry , manage to figure it out x = device label (in this case API of ARGON) and y = variable label API.
for completeness:

#define DATA_SOURCE_TAG "new-variable-4"//from API label ubidot dashboard devices


value = ubidots.get("e00fce6867xxxx034dbe6c5",DATA_SOURCE_TAG);

Serial.printf("value %f\n",value)

Hi there, you can reference additional examples here.

All the best