ESP sets up AP

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
pmulvey
Posts: 45
Joined: Sun Jul 29, 2018 8:12 am
Location: Athlone, Ireland

ESP sets up AP

Post by pmulvey » Mon Aug 06, 2018 9:47 am

My D1 Mini and NodeMCU set up an AP without any mention in code to do that. Is this normal, can it be stopped?

yeyeto2788
Posts: 28
Joined: Wed Mar 30, 2016 4:09 pm

Re: ESP sets up AP

Post by yeyeto2788 » Mon Aug 13, 2018 10:37 am

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.

Post Reply