Allow upload_files.py to accept target IP as command line argument

This commit is contained in:
Adolfo Reyna
2026-06-17 22:36:32 -04:00
parent c63712e3aa
commit 31363734c5
+6
View File
@@ -3,7 +3,13 @@ import json
import urllib.request import urllib.request
import sys import sys
# Default ESP32 IP
ESP32_IP = "192.168.68.124" ESP32_IP = "192.168.68.124"
# Allow overriding IP via command-line argument
if len(sys.argv) > 1:
ESP32_IP = sys.argv[1]
URL = f"http://{ESP32_IP}/api/mcp" URL = f"http://{ESP32_IP}/api/mcp"
def call_mcp_tool(tool_name, arguments): def call_mcp_tool(tool_name, arguments):