Unable to set static IP

ajay.bhargav
Posts: 11
Joined: Fri Jul 17, 2015 7:13 pm

Unable to set static IP

Postby ajay.bhargav » Wed Feb 22, 2017 3:13 pm

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??

ESP_Xutao
Posts: 134
Joined: Tue Sep 27, 2016 5:42 pm

Re: Unable to set static IP

Postby ESP_Xutao » Mon Feb 27, 2017 11:15 am

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

Who is online

Users browsing this forum: No registered users and 60 guests