pull/33/head
Pálfi Péter 2022-04-03 01:21:13 +02:00
rodzic b86a900cf5
commit 92f24903f1
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -99,6 +99,13 @@ def do_connect(ssid, password):
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 ):
client.sendall("HTTP/1.0 {} OK\r\n".format(status_code))
client.sendall("Content-Type: text/html\r\n")