[SOLVED] Updating multiple variables to ubidots via android


#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


#2

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


#3

@juanda95 (Junada) maybe could help you

Best regards,
Metavix


#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


#5

Nice @jbeard, if you still need any kind of help please let us to know.

Have a nice day