I went through the steps for the esp8266 dongle project and installed the module driver, but my esp8266 module does not connect to the pc to connect to the internet, I need help?
Hi, I run the AP mode in Arduino and in my wifi list I see my ESP201 , and I connect it but when I connect it another controller which is px4 based controller it doesn't up and I never see it is blinking blue and it never comes up wifi list. How can I make it this AP (Access Point) as a defult in every controller in ardunio IDE?
Sometimes my nodemcu doesn't work. If I remove all connections and then press reset button. It will start working. I'm tired of doing this everytime. Can you tell me what should I do to overcome this ?
It's can be happen for different reason can you just add WiFi.disconnect(); line for AP WiFi.disconnect(); WiFi.mode(WIFI_AP); IPAddress Ip(200, 10, 15, 2); IPAddress NMask(255, 255, 255, 0); WiFi.softAPConfig(Ip, Ip, NMask); WiFi.softAP("TEST_AP","123"); WiFi.begin(); for Station WiFi.disconnect(); WiFi.begin(ssid,pass); just try if is not fix i will help to fix it....
I went through the steps for the esp8266 dongle project and installed the module driver, but my esp8266 module does not connect to the pc to connect to the internet, I need help?
Could you explain bit more about you question ?
Hi, I run the AP mode in Arduino and in my wifi list I see my ESP201 , and I connect it but when I connect it another controller which is px4 based controller it doesn't up and I never see it is blinking blue and it never comes up wifi list.
How can I make it this AP (Access Point) as a defult in every controller in ardunio IDE?
Sometimes my nodemcu doesn't work. If I remove all connections and then press reset button. It will start working. I'm tired of doing this everytime. Can you tell me what should I do to overcome this ?
It's can be happen for different reason can you just add
WiFi.disconnect(); line
for AP
WiFi.disconnect();
WiFi.mode(WIFI_AP);
IPAddress Ip(200, 10, 15, 2);
IPAddress NMask(255, 255, 255, 0);
WiFi.softAPConfig(Ip, Ip, NMask);
WiFi.softAP("TEST_AP","123");
WiFi.begin();
for Station
WiFi.disconnect();
WiFi.begin(ssid,pass);
just try if is not fix i will help to fix it....
do you have the code for AP+STA mode in one single file?
#include
void setup() {
Serial.begin(115200);
//accesspoint();
wifiscan();
//
}
void loop() {
// put your main code here, to run repeatedly:
}
void accesspoint(){
WiFi.mode(WIFI_AP);
IPAddress Ip(200, 10, 15, 2);
IPAddress NMask(255, 255, 255, 0);
WiFi.softAPConfig(Ip, Ip, NMask);
WiFi.softAP("TEST_AP","12345678");
WiFi.begin();
}
void connectToWifi(){
String DHCPIP;
WiFi.disconnect();
WiFi.begin("TP-LINK_95496D", "Welcome2");
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println(WiFi.localIP());
if(WiFi.status() == WL_CONNECTED){
Serial.println("connected..");
}
DHCPIP = WiFi.localIP().toString();
Serial.println("Ip Assign from network : "+DHCPIP);
}
void wifiscan(){
int numberOfNetworks = WiFi.scanNetworks();
delay(2000);
for(int i =0; i
change above sample code for your requirement