Page 1 of 1

D1mini Pro Firmware drives an AP in background

Posted: Tue Mar 31, 2020 8:22 pm
by der_kps
[*]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

Re: D1mini Pro Firmware drives an AP in background

Posted: Tue Mar 31, 2020 8:36 pm
by Christian Walther
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.

Re: D1mini Pro Firmware drives an AP in background

Posted: Tue Mar 31, 2020 9:28 pm
by der_kps
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' :?

Re: D1mini Pro Firmware drives an AP in background

Posted: Tue Mar 31, 2020 10:04 pm
by der_kps
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

Re: D1mini Pro Firmware drives an AP in background

Posted: Wed Apr 01, 2020 1:16 pm
by Christian Walther
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)).

Re: D1mini Pro Firmware drives an AP in background

Posted: Wed Apr 01, 2020 4:43 pm
by bitninja
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.

Re: D1mini Pro Firmware drives an AP in background

Posted: Fri Apr 03, 2020 4:04 pm
by der_kps
Well,
'I'll kill that ...' AP.

Thanks to both!

der_kps
stay healthy!