FastLED 3.9.15
Loading...
Searching...
No Matches
test_manual.py
Go to the documentation of this file.
1import os
2import subprocess
3import sys
4import time
5
6import httpx
7
8
9# Get absolute paths
10cwd = os.getcwd()
11runner_path = os.path.join(
12 cwd, ".build", "meson-quick", "examples", "example_runner.exe"
13)
14dll_path = os.path.join(cwd, ".build", "meson-quick", "examples", "example-Server.dll")
15
16print("Starting server (will run in foreground)...")
17print("Open another terminal and run:")
18print(" curl http://localhost:8080/")
19print(" curl http://localhost:8080/ping")
20print(" curl http://localhost:8080/status")
21print()
22
23# Run server in foreground (no stdout capture)
24subprocess.run([runner_path, dll_path])
Serial print("Error: ")