switch between Wifi and 3G for Myhome System

Nguyễn Trực 6 jaar geleden in i2 Control V2.2 bijgewerkt door Ekaterina (head of support) 6 jaar geleden 1
I'm control to Myhome System. I create two button switch 3G and wifi . But When I use 3G control to myhome system, it's not working! the script:
function Internal_TCP()
IR.GetDevice("My Home").SetParameters({Host: "", Port: "20000",Password: "12345"});
function External_TCP()
IR.GetDevice("My Home").SetParameters({Host: "my company DNS ", Port: "20000",Password: "12345"});

Please add the password as a number: Host: "", Port: 20000, Password: ""