0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ESP32: MicroPython で SSID をスキャン (ampy で書き込む)

0
Posted at

こちらのプログラムを改造して、ampy で書き込みました。
ESP32: MicroPython で SSID をスキャン

プログラム

main.py
import network
import utime

wlan = network.WLAN(network.STA_IF)
wlan.active(True)

while True:
	aplist = wlan.scan()
	llx = len(aplist)
	print(llx)
	for it in range(llx):
	    print(aplist[it][0].decode())
	utime.sleep(2)

書き込み

ボードは実行モードで書き込みます。
 (MicroPython が実行している状態)

ampy --port /dev/ttyUSB0 put main.py

実行結果

$ cu -l /dev/ttyUSB0 -s 115200
Connected.
17
TP-Link_E2EE

rs500m-e1eaf5-1
rs500m-e1eaf5-2
Buffalo-G-C600-WPA3

DIRECT-Gb-EPSON-EW-M754T Series
Buffalo-G-C600
Extender-G-1AA0
Extender-G-1AA0-WPA3
SGP200W-7CA8-bg
Buffalo-G-37E8-2
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?