Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By MegaKing
#15858 How can i set the IP to be fixed?

Using the AT commands it was AT+CIPSTA=192.168.1.77

Thanks
Last edited by MegaKing on Thu Apr 30, 2015 8:18 pm, edited 1 time in total.
User avatar
By Davy
#15866 I haven't tried with the esp yet but on arduino you would use WiFi.config
ESP8266WiFi.cpp has void ESP8266WiFiClass::config(IPAddress local_ip, IPAddress gateway, IPAddress subnet)

So, I'm guessing that this should work:
Code: Select allIPAddress ip(192, 168, 0, 177); 
IPAddress gateway(192, 168, 0, 1); 
IPAddress subnet(255, 255, 255, 0); 
WiFi.config(ip, gateway, subnet);
User avatar
By Sunspot
#16115 I added the code above with my numbers to the example HelloServer in various ways but although it ran it still got a DHCP address.
I guess something else needs changing.

Help much appreciated .