[SOLVED] Updating multiple variables to ubidots via android

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

@juanda95 (Junada) maybe could help you

Best regards,
Metavix

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