Uncategorized

pico_w_wifi_connect_2022jul0601.py

pico_w_wifi_connect_2022jul0601.py tlfong01 2022jul06hkt1612

***

Rpi Pico W WiFi Connection Demo Program v0.1, tlfong01, 2022jul05hkt2126

Thonny 3.3.13, Windows 10 (64-bit), Python 3.7.9 (32 bit), Tk 8.6.9

MicroPython v1.19.1-88-g99c258977 on 2022-06-30; Raspberry Pi Pico W with RP2040

***

import network
import time

wlan = network.WLAN(network.STA_IF)
wlan.active(True)
print(wlan.scan())
wlan.connect(‘Fong’, ‘97469005’)
print(wlan.isconnected())

”’

*** Sample Output tlfong01 2022jul06hkt1615 ***

MicroPython v1.19.1-88-g99c258977 on 2022-06-30; Raspberry Pi Pico W with RP2040

Type “help()” for more information.

%Run -c $EDITOR_CONTENT
[(b’Fong’, b’l\xcd\xd6\x14\xad-‘, 10, -39, 5, 3), (b’whois24′, b”\x04\xd4\xc4\xb8’p”, 11, -37, 5, 4), (b’cswhaustv’, b’\x9c\x9d~\x9f\xe3', 11, -58, 5, 4), (b'mike', b'\xc4\xa3fTm\xfc', 1, -73, 5, 2), (b'Watson', b'$K\xfe *\xa8', 7, -41, 5, 3), (b'A-Home', b'\xc8\xd7\x19\x1b\xca\xac', 5, -87, 7, 1), (b'Default30', b'\xe2\xe9\x95FA\x94', 11, -39, 5, 5), (b'My_Sweet_Hse', b'8\xe0\x034\xf6′, 4, -86, 5, 1)]
True

*** End of sample output ***

”’

.END

Categories: Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.