Your comments

Alright, everything that you told me until now I already knew. I followed this orientations and the fibaro driver doesn'n work with the use of scripts. 

What I wanna know is why when I try to make a script for the user chose, on the project, what is his type of connection (if it is internal or external), the Fibaro driver doesn't work, but the global cache driver works correctly. 

I wanna know what is the difference between this two drivers, because the fibaro driver only works if I do a project only dedicated to external acess and another only dedicated to internal acess. 

I wanna make only one project that the user can chose what is his type of connection so the properties of the driver can be changed automatically. 

Ok, but how do I proceed to connect to the Fibaro device outside the local network?

I'm sorry, I uploaded the wrong project. Please access the Drive folder again.

Hello,

I am having trouble to atach the project here, but basically I tried to create a string with the function below. The device named "7Port" works correctly, but the 'Fibaro' device doesn't work... This device have a login and password as the other does not. I'm not getting to connect it on external connections, only internal.


function External()
{

var driver4 = IR.GetDevice("Fibaro");
driver4.Disconnect(); // disconnect from  equipment 
driver4.SetParameters({Host: "MyExternalIp", Port: "xxxx"}); // change the connection settings 
driver4.Connect(); // connect to equipment      

var driver3 = IR.GetDevice("7Port");
driver3.Disconnect(); // disconnect from  equipment 
driver3.SetParameters({Host: "MyExternalIP", Port: "xxxx"}); // change the connection settings 
driver3.Connect(); // connect to equipment

}



Hi,

I have got to connect the device remottely, but now I need to create a method to acess it remotelly only when the phone is not in the internal wi-fi. I am trying to do this with strings but one of the devices - the one that has a login and password -  is not responding acordingly... Where am I failing?