Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change IP 192.168.4.1 SOFT AP ?? #2208

Closed
Banzai00 opened this issue Jun 30, 2016 · 2 comments
Closed

Change IP 192.168.4.1 SOFT AP ?? #2208

Banzai00 opened this issue Jun 30, 2016 · 2 comments

Comments

@Banzai00
Copy link

Is it possible to change the default IP 192.168.4.1 in AP mode ??

@boguslawb
Copy link

Something like this :

IPAddress Ip(192, 168, 1, 1);
  IPAddress NMask(255, 255, 255, 0);


  WiFi.softAPConfig(Ip, Ip, NMask);
 if (!WiFi.softAP( ssid, password,channel,0))
  {
   Serial.println("WiFi.softAP failed.(Password too short?)");
   return;
  }
  IPAddress myIP = WiFi.softAPIP();
  Serial.println();
  Serial.print("AP IP address: ");
  Serial.println(myIP);

@eliezermoraesss
Copy link

Thank you so much!
You helped me a lot! 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants