logo elektroda
logo elektroda
X
logo elektroda

ESP8266 how to disable automatically activating a new network?

c_krzysiek 723 3
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18437105
    c_krzysiek
    Level 7  
    Good morning.
    I am starting my adventure with the Arduino Mega and the esp 8266 chip. I have recently purchased a Wemos D1 board and managed to connect it and program it in the Arduino IDE environment. However, I have encountered a problem because as soon as I connect the Wemos to the power supply, my phone shows a new WIFI network called "ESP-A7A601" ( I am not creating any access point in my sketch). How can I disable the automatic creation of a new network by esp?

    Greetings
    Krzysztof
  • ADVERTISEMENT
  • Helpful post
    #2 18437125
    Slawek K.
    Level 35  
    You need to set the WIFI_STA mode which means client, not Access Point.

    WiFi.mode(WIFI_STA);

    Greetings
  • ADVERTISEMENT
  • #3 18437174
    c_krzysiek
    Level 7  
    It worked, I added it before Wifi.begin. Thank you :) .
    Interesting that previously after uploading even an empty sketch, without any commands, it still started the AP....

    Greetings
    Krzysztof
  • #4 18437281
    khoam
    Level 42  
    c_krzysiek wrote:
    Interestingly, previously, after uploading even a blank sketch, without any commands, it still started the AP....
    .
    This is the default operation of the ESP8266.
ADVERTISEMENT