Someone has figured it out how to make a call to a bucket from a device?
I mean, for example, if I have an acumulator, and storing it in a bucket, if the device resets, I want that it calls the last bucket value and keep counting since that value.
Hi @ega, finally we are working on a new feature, that will be useful for this use case. Devices will be able to store/read config from the cloud with just a command. Hope we can release it soon!
Is that feature released or yet to be released. Cause i have the same issue in my instance. When the device resets, i need the device resources to be loaded from the data bucket created. Hope the feature is finished.
I did not do it in a bucket, but on device properties.
e.g.
in setup:
pson persistance;
thing.get_property(“persistance”, persistance);
currentInt = persistance[“currentInt”];
nCurrent = persistance[“nCurrent”];;
AhBat[27] = persistance[“Ah/hour”];
AhBat[26] = persistance[“Ah/yesterday”];
voltageDelta = persistance[“voltageDelta”];
voltageAt4h = persistance[“voltageAt4h”];
internal_resistance = persistance[“resistance”];