Scanning is only possible on STA interface. Hidden networks – where the SSID is not broadcast – will also be scanned Scan for the available wireless networks. If bssid is given then the connection will be restricted to theĪccess-point with that MAC address (the ssid must also be specifiedĭisconnect from the currently connected wireless network. connect ( ssid = None, key = None, *, bssid = None ) ¶Ĭonnect to the specified wireless network, using the specified key. Most other methods require active interface. Otherwise, query current state if no argument is active ( ) ¶Īctivate (“up”) or deactivate (“down”) network interface, if booleanĪrgument is passed. Availability of the methods below depends on interface type.įor example, only STA interface may nnect() to an access point. Points) and network.AP_IF (access point, allows other WiFi clients toĬonnect). Network.STA_IF (station aka client, connects to upstream WiFi access WLAN ( interface_id ) ¶Ĭreate a WLAN network interface object. connect ( 'your-ssid', 'your-key' ) # now use sockets as usual Constructors ¶ class network. Import network # enable station interface and connect to WiFi access point nic = network. Quick reference for the SAMD21/SAMD51 family.Quick reference for the UNIX and Windows ports.MicroPython language and implementation.Extending built-in libraries from Python.This includes hidden networks, which appear as 'Network name unavailable.' To stop the scan, tap Stop. AirPort Utility lists all the SSIDs that it finds. By default, Wi-Fi Scanner runs continuously. Use the slider to set a scan duration of up to 60 seconds. uctypes – access binary data in a structured way Open the Airport Utility app, then tap Wi-Fi Scan.neopixel - control of WS2812 / NeoPixel LEDs.micropython – access and control MicroPython internals. machine - functions related to the hardware.Python standard libraries and micro-libraries.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |