forked from johannesPettersson80/codesys-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimple_test.bat
More file actions
46 lines (40 loc) · 1.12 KB
/
Copy pathsimple_test.bat
File metadata and controls
46 lines (40 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@echo off
REM Simple Test Batch File for CODESYS API
SETLOCAL EnableDelayedExpansion
echo CODESYS API Simple Test Script
echo =============================
echo.
REM Step 1: Run the simple debug script
echo Running simplified debugger...
python simplified_debug.py
echo.
echo Debugging complete.
echo.
REM Step 2: Prompt for next action
echo What would you like to do next?
echo.
echo 1. Run test server (no CODESYS integration)
echo 2. Run actual HTTP_SERVER
echo 3. Exit
echo.
SET /p CHOICE=Enter choice (1, 2, or 3):
IF "%CHOICE%"=="1" (
echo Starting test server...
echo Use another command window to test with:
echo curl -H "Authorization: ApiKey admin" http://localhost:8080/api/v1/system/info
echo.
echo Press Ctrl+C to stop the server when done.
python test_server.py
goto :end
)
IF "%CHOICE%"=="2" (
echo Starting HTTP server (with CODESYS integration)...
echo Use another command window to test with:
echo python example_client.py
echo.
echo Press Ctrl+C to stop the server when done.
python HTTP_SERVER.py
goto :end
)
:end
ENDLOCAL