Modified logic for /network_config to return currently associated BSSID instead of pulling from UCI. Added /SOS GET endpoint for easily directing the unit to connect to any campground wireless AP in a pinch.

This commit is contained in:
wes
2025-06-11 23:04:09 -04:00
parent eaa1f5ce53
commit af5ead4c33
3 changed files with 92 additions and 2 deletions
+1
View File
@@ -50,6 +50,7 @@ local success, load_result = pcall(function()
router:add_route("GET", "/network_config", network_handlers.get_network_config)
router:add_route("POST", "/connect_wifi", network_handlers.set_connect_wifi)
router:add_route("GET", "/SOS", network_handlers.set_connect_wifi_sos)
router:add_route("GET", "/wifi_scan", wifi_handlers.get_wifi_scan)
router:add_route("GET", "/system_log_parsed", system_handlers.get_system_log_parsed)