Page 1 of 1

ESP sets up AP

Posted: Mon Aug 06, 2018 9:47 am
by pmulvey
My D1 Mini and NodeMCU set up an AP without any mention in code to do that. Is this normal, can it be stopped?

Re: ESP sets up AP

Posted: Mon Aug 13, 2018 10:37 am
by yeyeto2788
As it states on the Documentation http://docs.micropython.org/en/latest/e ... point#wifi
After 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.
You can head to the Network Basic on the Documentation http://docs.micropython.org/en/latest/e ... ork-basics

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)
Take into account that it would only do that and power on.

Regards.