jbeard
August 31, 2016, 4:52am
1
I’ve been following along with this tutorial ubidots-android . It works great for updating one variable. If I want to update more than one (in my case two) what is the best procedure? I can do it by calling “.saveValue” on two different variables in that task, but it is very slow.
Thanks,
Jamie
Hello, reading some of the API from Ubidots’ Git https://github.com/ubidots/ubidots-java/blob/master/src/main/java/com/ubidots/Variable.java , function ‘savevalue()’ actually get a simple variable id from your account and posts to it, I think that you would modify some that function in order to receive an array of variable’s IDs and then make a loop to store them using the multiple POST for variables available in Ubidots: https://ubidots.com/docs/api/index.html#send-values-to-many-variables
Metavix
September 22, 2016, 2:26pm
3
@juanda95 (Junada) maybe could help you
Best regards,
Metavix
jbeard
September 23, 2016, 11:43am
4
Thanks guys for the suggestions. I was able to get by ok to complete my short term project.
I may look back at it now in my free tI me and see what I can work out.
Thanks,
Jamie
1 Like
Nice @jbeard , if you still need any kind of help please let us to know.
Have a nice day