Pálfi Péter 2023-01-05 08:26:26 -05:00 zatwierdzone przez GitHub
commit b1b0b9ddca
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -100,6 +100,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")