How do I open url?

HI
I need to send URL command to an local network device.
the phone will be conected to this network via WIFI
and I need to open the URL: 192.168.4.1/r?rapi=%24FS
I tried:
When Button1.click do call WebViewer1.GoToUrl url= "192.168.4.1/r?rapi=%24FS"

no response at all...
any idea what I am doing wrong?

for example, when sending this URL from the PC
the output in the browser is:

RAPI Command Sent

Common Commands:

Set Current - $SC XX

Set Service Level - $SL 1 - $SL 2 - $SL A

Get Real-time Current - $GG

Get Temperatures - $GP

RAPI Command:

$FS"

$OK^20

1 Like

Please show your relevant blocks

Do you want the response in the webviewer, or do you want to access the data returned? If the latter you may want to use the web component instead....

1 Like

Hi

To be honest, the response is not the important thing, sorry for comfusing.. I just wanted to show that when I open this url on the computer it works.

so as first step I want the url (command) to reach the external device.
I used the block:

Screenshot 2022-07-02 13.32.53

1 Like

Are you tested with companion or a compiled app ?

For both, are you certain that your device is on the same network as the local server ?

1 Like

l download the app to the smart phone, installed it, change to the local network and test.

Now I tried to send the same url commands from the phone browser and found it will only works if I disable the cellar network.

I tried the app button again, and it works well when cellar network is off.

The problem is the cellar network.

Is there a way to force the app to use the wifi network

1 Like

Try with http:// in front of the IP address

1 Like