Static IP vs DHCP

Siddhartha
Posts: 1
Joined: Mon Sep 21, 2015 8:00 pm

Static IP vs DHCP

Postby Siddhartha » Mon Sep 21, 2015 8:02 pm

“The wifi.setmode(wifi.STATION) statement should be done only if we are using a static IP ? It should not be used if we use a dynamic IP (i.e. in a DHCP environment).”

Hi, is this statement true ? Please let me know what is the reason behind it ?

Also, excuse me if my query is wrongly positioned. Will request someone knowledgeable to place it in the correct forum. Thanks.

ESP_Faye
Posts: 1641
Joined: Mon Oct 27, 2014 11:08 am

Re: Static IP vs DHCP

Postby ESP_Faye » Wed Sep 23, 2015 4:11 pm

Hi,

“The wifi.setmode(wifi.STATION) statement should be done only if we are using a static IP ? It should not be used if we use a dynamic IP (i.e. in a DHCP environment).”


It seems to be wrong. You can set it to be station mode, and use a static IP.

Who is online

Users browsing this forum: No registered users and 3 guests