0
Answered

Check SSID and change host

Matheus Botura Pimenta 3 years ago in Applications / i3 Pro updated 3 years ago 1

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.