We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4481be commit ab41a20Copy full SHA for ab41a20
examples/esp32spi_ipconfig.py
@@ -15,6 +15,8 @@
15
print("WiFi secrets are kept in secrets.py, please add them there!")
16
raise
17
18
+HOSTNAME = "esp32-spi-hostname-test"
19
+
20
IP_ADDRESS = "192.168.1.111"
21
GATEWAY_ADDRESS = "192.168.1.1"
22
SUBNET_MASK = "255.255.255.0"
@@ -35,8 +37,8 @@
35
37
36
38
s_in = socket.socket(type=socket.SOCK_DGRAM)
39
s_in.settimeout(UDP_TIMEOUT)
-print("set hostname:")
-esp.set_hostname("new_hostname".encode("utf-8"))
40
+print("set hostname:", HOSTNAME)
41
+esp.set_hostname(HOSTNAME)
42
43
if esp.status == adafruit_esp32spi.WL_IDLE_STATUS:
44
print("ESP32 found and in idle mode")
0 commit comments