0
Beantwoord

Check SSID and change host

Matheus Botura Pimenta 6 jaar geleden in Applications / i3 Pro bijgewerkt 6 jaar geleden 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");
Beantwoord

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.