You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Tweak webserver_settings.py and wifi_service.py
This commit is contained in:
+2
-2
@@ -66,9 +66,9 @@ class WebServerSettings(Activity):
|
||||
port = status.get("port")
|
||||
ip_address = WifiService.get_ipv4_address()
|
||||
if ip_address:
|
||||
url_text = f"http://{ip_address}:{port}"
|
||||
url_text = f"http://{ip_address}:{port}/"
|
||||
else:
|
||||
url_text = f"http://<wifi ip>:{port}"
|
||||
url_text = f"http://<wifi ip>:{port}/"
|
||||
self.detail_label.set_text(f"URL: {url_text}\nAutostart: {autostart_text}")
|
||||
|
||||
button_text = "Stop" if status.get("started") else "Start"
|
||||
|
||||
@@ -509,7 +509,7 @@ class WifiService:
|
||||
network_module=network_module,
|
||||
ap_index=0,
|
||||
sta_key="addr4",
|
||||
desktop_value="123.456.789.000",
|
||||
desktop_value="127.0.0.1",
|
||||
label="address",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user