Forum Discussion
AlexKaras
10 years agoCommunity Hero
Hi,
Try to use the TryToSetCurrent() method. I.e. instead of
Mobile["Refresh"]()
if(Mobile["Device"](device)["Exists"]==true)
use
if(Mobile["TryToSetCurrent"](device))
...
and move
Mobile["Refresh"]()
to the end of the
while(aqDateTime["Now"]()<endtime)
loop in order not to do unnecessary refresh if the device is already found.
Does it help?