how can i set static ip in esp32 ?
Posted: 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);//**********************