0
Answered

Check SSID and change host

Matheus Botura Pimenta 8 years ago in Applications / i3 Pro updated by office_iridiummobile ru (manager) 2 years ago 3

The following script works fine with Windows, but when I send it to Android the application doesn´t even opens.


IR.SetGlobalListener(IR.EVENT_GLOBAL_TAG_CHANGE, function(name, value)

{

if (IR.GetVariable("System.Net.SSID") == "My wifi") IR.GetDevice("iRidium Server").SetParameters({Host: "192.168.0.10"})

else IR.GetDevice("iRidium Server").SetParameters({Host: "myserver.com"})

});


////////////////////////////////////////// Subscribe

IR.SubscribeTagChange("System.Net.SSID");
Answered

Hello!


Yes we are aware of the problem associated with the token to get the name of the network

"System.Net.SSID"

And we have corrected it, the changes will be included in the next release.

Was there a fix for this already? I am getting <unknown ssid> when run on android

Yes. This was done a long time ago.

If you have any trouble about this question, then you'll need to send your question to support@iridi.com. Our specialists work there, we changed our help desk.