Page 1 of 1

Unable to set static IP

Posted: Wed Feb 22, 2017 3:13 pm
by ajay.bhargav
I am trying to configure ESP8266 with static IP but somehow the IP gateway is changing automatically to some invalid value.
IP configuration I want to set:
IP: 192.168.1.100
Mask: 255.255.255.0
GW: 192.168.1.254

But when I print the ip configuration I get back this:

IP: 192.168.1.100
Mask: 255.255.255.0
GW: 255.255.255.127

Can someone tell me or point me where things are going wrong? Is it that GW IP 192.168.1.254 is not allowed??

Re: Unable to set static IP

Posted: Mon Feb 27, 2017 11:15 am
by ESP_Xutao
Hi
About this,I don't you how to set,but you can consult this sample to set.
https://github.com/espressif/esp8266-rt ... /conn_ap.c