port und so

This commit is contained in:
chk
2026-03-10 15:49:53 +01:00
parent 20e2790552
commit ab9b0919fb
7 changed files with 19 additions and 51 deletions

14
scripts/accessWss.py Normal file
View File

@@ -0,0 +1,14 @@
import websocket
import json
import ssl
websocket.enableTrace(True)
ws = websocket.create_connection(
"wss://localhost:3000",
sslopt={"cert_reqs": ssl.CERT_NONE}
)
ws.send(json.dumps({"type": "gcode", "cmd": "G0 x104"}))
ws.close()