Connect STA to AP
Posted: Tue Jul 28, 2015 10:19 am
Hello
I see on reference http://arduino.esp8266.com/versions/1.6.5-947-g39819f0/doc/reference.html that it is not possible to use multicast on AP interface so I was trying to connect the STA interface to AP interface but it doesn't seem to work
this is my code :
the second connexion never happens
i can connect to my acces point with another device
Does somebody know why I can't do that ?
thanks !
I see on reference http://arduino.esp8266.com/versions/1.6.5-947-g39819f0/doc/reference.html that it is not possible to use multicast on AP interface so I was trying to connect the STA interface to AP interface but it doesn't seem to work
this is my code :
Code: Select all
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
const char* ssid = "tagada";
const char* password = "azertyuiop";
void setup(void)
{
Serial.begin(115200);
delay(2000);
WiFi.mode(WIFI_AP);
WiFi.softAP(ssid, password);
delay(2000);
wifiConnect();
}
void loop(void)
{
delay(500);
}
void wifiConnect()
{
WiFi.begin(ssid, password);
// Wait for connection
while(WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.println("waiting");
}
Serial.println(WiFi.localIP());
}
the second connexion never happens
i can connect to my acces point with another device
Does somebody know why I can't do that ?
thanks !