ESP sets up AP
ESP sets up AP
My D1 Mini and NodeMCU set up an AP without any mention in code to do that. Is this normal, can it be stopped?
-
- Posts: 28
- Joined: Wed Mar 30, 2016 4:09 pm
Re: ESP sets up AP
As it states on the Documentation http://docs.micropython.org/en/latest/e ... point#wifi
A quick way would be creating a file called `boot.py` or `main.py` with the following code to disable the AP:
Take into account that it would only do that and power on.
Regards.
You can head to the Network Basic on the Documentation http://docs.micropython.org/en/latest/e ... ork-basicsAfter a fresh install and boot the device configures itself as a WiFi access point (AP) that you can connect to. The ESSID is of the form MicroPython-xxxxxx where the x’s are replaced with part of the MAC address of your device (so will be the same everytime, and most likely different for all ESP8266 chips). The password for the WiFi is micropythoN (note the upper-case N). Its IP address will be 192.168.4.1 once you connect to its network.
A quick way would be creating a file called `boot.py` or `main.py` with the following code to disable the AP:
Code: Select all
import network
ap_if = network.WLAN(network.AP_IF)
ap_if.active(False)
Regards.