how can i set static ip in esp32 ?

feredy2011
Posts: 10
Joined: Mon Aug 14, 2017 8:47 pm

how can i set static ip in esp32 ?

Postby feredy2011 » Wed Aug 16, 2017 5:10 pm

hi . i want use static ip for esp32. how i can set this ?in esp8266 i use this library and code but in esp32 dont work.

Code: Select all

IPAddress ip(192, 168, 1, 241); //*****************************
IPAddress gateway(192, 168, 1, 1); //**************************
IPAddress subnet(255, 255, 255, 0); //*************************
IPAddress DNS(192, 168, 1, 1); //******************************

Code: Select all

 WiFi.config(ip, gateway, subnet, DNS);//**********************

ESP_Sprite
Posts: 9709
Joined: Thu Nov 26, 2015 4:08 am

Re: how can i set static ip in esp32 ?

Postby ESP_Sprite » Fri Aug 18, 2017 11:33 am

Looks like you're using Arduino; moved to the Arduino subforum.

ESP_Sprite
Posts: 9709
Joined: Thu Nov 26, 2015 4:08 am

Re: how can i set static ip in esp32 ?

Postby ESP_Sprite » Fri Aug 18, 2017 11:55 am

Also looks like this is a duplicate topic. Locking this one.

Who is online

Users browsing this forum: DonEvans and 109 guests