Allow upload_files.py to accept target IP as command line argument
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user