Had the same question, solved it in my wireless router TP-Link... There you can relate MAC address to IP address..
Hans
Explore... Chat... Share...
Middelbh wrote:Hi!
Had the same question, solved it in my wireless router TP-Link... There you can relate MAC address to IP address..
Hans
wifi.sta.setip("ip", "netmask", "gateway")
e.g.
wifi.sta.setip("10.0.0.2", "255.255.255.0", "10.0.0.1")
struct station_config stationConf;
struct ip_info info;
wifi_station_set_auto_connect(FALSE);
os_memset(&stationConf, 0, sizeof(struct station_config));
os_sprintf((char *)stationConf.ssid, "%s", sysCfg.sta_ssid);
os_sprintf((char *)stationConf.password, "%s", sysCfg.sta_pass);
ip = sysCfg.sta_ip;
mask = sysCfg.sta_mask;
gw = sysCfg.sta_gw;
if (ip)
info.ip.addr = ipaddr_addr(ip);
if (mask)
info.netmask.addr = ipaddr_addr(mask);
if (gw)
info.gw.addr = ipaddr_addr(gw);
wifi_set_ip_info(STATION_IF, &info);
wifi_station_set_config(&stationConf);
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]