← index #2642Issue #2432
Related · high · value 0.836
QUERY · ISSUE

esp8266: set default softAP False (OFF)

openby profraopened 2016-11-17updated 2024-09-19
port-esp8266needs-info

Here is probably better place to discuss my suggestion I mentioned on http://forum.micropython.org/viewtopic.php?f=16&t=2631&start=70#p15831 only as a note.

"Note:
I would like to suggest (to @pfalcon) not to activate default softAP but to make it during WEBREPL activation. I think it's useful because I can see a room full of attendees during a training with fresh flashed MicroPython who shall solve the task BLINK_LED, while there is the air full of RF smog with e.g. activated 10 APs..., which are useless at that moment. When the trained people reach WiFi topics, they will be able to activate necessary functions."
... there are plenty of other reasons too.

CANDIDATE · ISSUE

WebREPL is turned off by default

closedby iBobikopened 2016-09-18updated 2016-10-18
port-esp8266

In docs there is assumed WebREPL on ESP8266 is turned on by default, just connect to it.

Once you are on the same network as the ESP8266 you click the “Connect” button (if you are connecting via a router then you may need to change the IP address, by default the IP address is correct when connected to the ESP8266’s access point). If the connection succeeds then you should see a welcome message.

But in boot.py it is commented out by default:

# This file is executed on every boot (including wake-boot from deepsleep)
#import esp
#esp.osdebug(None)
import gc
#import webrepl
#web
repl.start()
gc.collect()

So in reality we have to first turn on WebREPL by serial REPL, then we con connect to it by network:

import webrepl
webrepl.start()

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied