This commit is contained in:
2025-10-08 10:43:59 +01:00
parent e1e80e2cbe
commit 4dbfdbc9ac
19 changed files with 65 additions and 48 deletions
-7
View File
@@ -5,7 +5,6 @@ from ch9120 import CH9120
import ujson
import math
start_time = time.time()
# --- CH9120 Network Configuration ---
MODE = 0
@@ -135,12 +134,6 @@ def update_ip_configuration(ip, gateway, subnet):
save_network_config(ip, gateway, subnet)
def get_uptime():
seconds = int(time.time() - start_time)
hrs = seconds // 3600
mins = (seconds % 3600) // 60
secs = seconds % 60
return f"{hrs:02d}:{mins:02d}:{secs:02d}"
def main():
ch9120_configure()