kopia lustrzana https://github.com/micropython/micropython-lib
WIP: removed network lib
rodzic
e13979569c
commit
69ce095a64
|
@ -5,7 +5,6 @@
|
|||
import urequests as requests
|
||||
import sys
|
||||
import gc
|
||||
import network
|
||||
import time
|
||||
import os
|
||||
|
||||
|
@ -103,16 +102,6 @@ def _rewrite_url(orig_url, branch=None):
|
|||
return url
|
||||
|
||||
|
||||
def _check_network():
|
||||
global _wlan
|
||||
if not _wlan:
|
||||
_wlan = network.WLAN(network.STA_IF)
|
||||
if not _wlan.isconnected():
|
||||
print("waiting for network...")
|
||||
while not _wlan.isconnected():
|
||||
pass
|
||||
|
||||
|
||||
def _download_file(url, dest):
|
||||
# if url is a file:// url, just copy it
|
||||
if url.startswith("file://"):
|
||||
|
|
Ładowanie…
Reference in New Issue