D1mini Pro Firmware drives an AP in background

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
der_kps
Posts: 20
Joined: Sat Feb 22, 2020 6:30 pm

D1mini Pro Firmware drives an AP in background

Post by der_kps » Tue Mar 31, 2020 8:22 pm

[*]Hello!
I've made my experiences with ESP32/uPython. Now I'm testing D1mini Pro.
First I've loaded the firmware 'esp8266-20200326-v1.12-307-gad004db66.bin' with uPyCraft.
Most of the customized ESP32 Sketches are working. :D

Once the firmware is flashed, I notice an active WLAN 'MicroPython-db5c7f' that was not installed by me. :shock:
What's that? Why? I can't login with '12345678(9).

Regards
der_kps

Christian Walther
Posts: 169
Joined: Fri Aug 19, 2016 11:55 am

Re: D1mini Pro Firmware drives an AP in background

Post by Christian Walther » Tue Mar 31, 2020 8:36 pm

That’s the standard behavior of a freshly installed firmware. See docs. help() tells you how to turn it off. The ESP8266 stores the WiFi configuration in flash so it will stay the way you set it.

der_kps
Posts: 20
Joined: Sat Feb 22, 2020 6:30 pm

Re: D1mini Pro Firmware drives an AP in background

Post by der_kps » Tue Mar 31, 2020 9:28 pm

OK!
1.6. WiFi:
'WiFi configuration will be discussed in more detail later in the tutorial.'

Where is later?
2.2. WebREPL - a prompt over WiFi

The benefit should be an alternative to the known commandline.

Actually I'm logged in (ipad) but can't get access (192.168.4.1). I try it later.
And (hence?) I can't find how to turn this behavior off.
I understand only 'railwaystation' :?

der_kps
Posts: 20
Joined: Sat Feb 22, 2020 6:30 pm

Re: D1mini Pro Firmware drives an AP in background

Post by der_kps » Tue Mar 31, 2020 10:04 pm

Hello again!
Moments later I recognize that I've scrolled over the solution:
>>> import webrepl_setup
I set it to 'D' and restart.
AP seems not to be running but is still available in WLAN.
:idea:
Thanks

Christian Walther
Posts: 169
Joined: Fri Aug 19, 2016 11:55 am

Re: D1mini Pro Firmware drives an AP in background

Post by Christian Walther » Wed Apr 01, 2020 1:16 pm

der_kps wrote:
Tue Mar 31, 2020 9:28 pm
1.6. WiFi:
'WiFi configuration will be discussed in more detail later in the tutorial.'

Where is later?
Section 4 “Network basics”.

I’m not sure I understand what you’re saying, but note that enabling/disabling WebREPL (done using import webrepl_setup) is independent of enabling/disabling the AP (done using network.WLAN(network.AP_IF).active(True/False)).

bitninja
Posts: 165
Joined: Thu Sep 15, 2016 4:09 pm
Location: Spring, Texas

Re: D1mini Pro Firmware drives an AP in background

Post by bitninja » Wed Apr 01, 2020 4:43 pm

By default, when you load a new image onto an ESP8266, it is automatically configured to be an Access Point with an SSID like you note.
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. WiFi configuration will be discussed in more detail later in the tutorial.
To disable the AP, you will need to run these command at the REPL...

Code: Select all

import network
ap = network.WLAN(network.AP_IF)    
ap.active(False)
The change is persistent so you should only have to do it once.

der_kps
Posts: 20
Joined: Sat Feb 22, 2020 6:30 pm

Re: D1mini Pro Firmware drives an AP in background

Post by der_kps » Fri Apr 03, 2020 4:04 pm

Well,
'I'll kill that ...' AP.

Thanks to both!

der_kps
stay healthy!

Post Reply