kopia lustrzana https://github.com/tayfunulu/WiFiManager
Merge 92f24903f1
into 8e28327daf
commit
b1b0b9ddca
|
@ -100,6 +100,13 @@ def do_connect(ssid, password):
|
||||||
return connected
|
return connected
|
||||||
|
|
||||||
|
|
||||||
|
def get_ip():
|
||||||
|
if wlan_sta.isconnected():
|
||||||
|
return wlan_sta.ifconfig()[0]
|
||||||
|
else:
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
def send_header(client, status_code=200, content_length=None ):
|
def send_header(client, status_code=200, content_length=None ):
|
||||||
client.sendall("HTTP/1.0 {} OK\r\n".format(status_code))
|
client.sendall("HTTP/1.0 {} OK\r\n".format(status_code))
|
||||||
client.sendall("Content-Type: text/html\r\n")
|
client.sendall("Content-Type: text/html\r\n")
|
||||||
|
|
Ładowanie…
Reference in New Issue