B4R Question WiFi connection with static IP

demasi

Active Member
Licensed User
Longtime User
Hello,
I'm using a NodeMcu board running a server to control some things and read some sensors.
I can control everything using a B4A app I made.
But every time I connect I need to discover and input the server IP address in my app. I can't set the router to give my board a static IP via DHCP because I have no access to the router.
In Arduino IDE I can set the IP via the following command:

WiFi.config(ip,dns,gateway);

but in B4R I couldn't find a way to do this directly.
So, is there a way to set a static IP in B4R by using native code?
 
Top