-->
Page 4 of 6

Re: Configure esp as access point and server

PostPosted: Mon Sep 14, 2015 4:38 am
by trendchaster
Hello gregf,
Can you provide the source file for same.Me too working on this.

I have multiple IOT devices that start as access points on reset so that the user can configure the device (including SSID/PWD) without having to hardcode the info, and then connect to the home wifi once configured.[/quote]

Re: Configure esp as access point and server

PostPosted: Wed Jan 13, 2016 11:55 pm
by sivakumar
I want to connect my esp to Access Point. Is it possible to connect??

Re: Configure esp as access point and server

PostPosted: Thu Jan 14, 2016 10:13 am
by martinayotte
Simply use the following piece of code in Setup() :

Code: Select all  const char* ssid     = "YourWifiAPRouter";
  const char* password = "xxxxxxxxxxxxxxx";
  WiFi.mode(WIFI_AP_STA);
  WiFi.begin(ssid, password); 
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }
  Serial.println("");
  Serial.println("WiFi connected");

Re: Configure esp as access point and server

PostPosted: Mon Jan 25, 2016 2:43 am
by anshul2nalin
Hey Amazing Work !!!
I just went through your code and am trying something like this. I want to use an esp8266 as a receiver and transmitter both is it possible ?