Jump to content

Variable on Favorite issue


Recommended Posts

Posted

@Javi, I have a command favorite which uses the value of an integer variable to show status, and I sync integer variables which all works great.  The problem occurs if the value of that variable changes during initial startup of UD Mobile.  This happens when I start the app, and before it shows me the value of that variable, I press the command which arm/disarm's my ELK and changes the value of that variable.  This quickly shows the correct value of the variable, but then when the app finishes the initial load it shows the old value.  Hopefully that makes sense, if not I can send screen video.

Posted

Hi @JimboAutomates,

I understand and know the cause.  If the variable changes are updated by the subscription before the initial value is processed the initial value may overwrite the value received from the subscription.  If all the values are requested before subscription start it could cause very long delays before node population, so subscription is started first. 

Added the issue and possible fix to our issue repository.

https://github.com/UniversalDevicesInc/UD-Mobile-Android/issues/32

  • Like 1
Guest
This topic is now closed to further replies.

×
×
  • Create New...