Skip to content
Snippets Groups Projects
Commit 5c06da68 authored by Dirk Geerts's avatar Dirk Geerts
Browse files

Version 2.4 N2O-box 2 deployment.

parent 18211550
No related branches found
No related tags found
No related merge requests found
Showing with 35 additions and 9 deletions
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
import asyncio
import websockets
async def test():
async with websockets.connect('://localhost:2629') as websocket:
websocket.send('test msg')
msg = await websocket.recv()
print(f"From Server: {msg}")
asyncio.get_event_loop().run_until_complete(test())
import asyncio
import websockets
import json
msg = {"Command":"Read.CVT"}
# msg = {"Command":"Read.Errors"}
# msg = {"Command":"Clear.Errors"}
# msg = {"Command":"Write.ActChannel","Act. channel":5}
# msg = {"Command":"Write.Recipe","Recipe":[[1,0,11],[0,0,12],[2,0,13],[1,0,14]]}
# msg = {"Command":"Debug"}
async def call_api(msg):
async with websockets.connect('ws://10.50.44.238:2629') as websocket:
await websocket.send(msg)
response = await websocket.recv()
print(response)
asyncio.get_event_loop().run_until_complete(call_api(json.dumps(msg)))
\ No newline at end of file
No preview for this file type
No preview for this file type
[ProjectWindow_Data] [ProjectWindow_Data]
ProjectExplorer.ClassicPosition[String] = "166,1933,1069,2360" ProjectExplorer.ClassicPosition[String] = "209,1967,1112,2394"
[AB_Cache_{0756750E-B4E8-4BF3-82A3-64077D79CBC8}] [AB_Cache_{0756750E-B4E8-4BF3-82A3-64077D79CBC8}]
Cache_Path[Path] Line0001 = "/C/Users/dgeerts/AppData/Local/Temp/AB_Cache_{0756" Cache_Path[Path] Line0001 = "/C/Users/dgeerts/AppData/Local/Temp/AB_Cache_{0756"
...@@ -65,14 +65,6 @@ Cache_Path[Path] Line0002 = "EFBD-E0A6-49D5-A022-49D24CDC5963}.txt" ...@@ -65,14 +65,6 @@ Cache_Path[Path] Line0002 = "EFBD-E0A6-49D5-A022-49D24CDC5963}.txt"
Cache_Path[Path] Line0001 = "/C/Users/dgeerts/AppData/Local/Temp/AB_Cache_{BC9A" Cache_Path[Path] Line0001 = "/C/Users/dgeerts/AppData/Local/Temp/AB_Cache_{BC9A"
Cache_Path[Path] Line0002 = "7945-DC7A-4D6B-8655-F354D97C98E4}.txt" Cache_Path[Path] Line0002 = "7945-DC7A-4D6B-8655-F354D97C98E4}.txt"
[AB_Cache_{86B3B92D-CED4-404C-B6DE-D76A94737DEE}]
Cache_Path[Path] Line0001 = "/C/Users/dgeerts/AppData/Local/Temp/AB_Cache_{86B3"
Cache_Path[Path] Line0002 = "B92D-CED4-404C-B6DE-D76A94737DEE}.txt"
[AB_Cache_{BC18E29A-3C28-4235-912C-852E130379D5}]
Cache_Path[Path] Line0001 = "/C/Users/dgeerts/AppData/Local/Temp/AB_Cache_{BC18"
Cache_Path[Path] Line0002 = "E29A-3C28-4235-912C-852E130379D5}.txt"
[AB_Cache_{C88B97DE-1D53-40B7-8A9D-7223F5200C59}] [AB_Cache_{C88B97DE-1D53-40B7-8A9D-7223F5200C59}]
Cache_Path[Path] Line0001 = "/C/Users/dgeerts/AppData/Local/Temp/AB_Cache_{C88B" Cache_Path[Path] Line0001 = "/C/Users/dgeerts/AppData/Local/Temp/AB_Cache_{C88B"
Cache_Path[Path] Line0002 = "97DE-1D53-40B7-8A9D-7223F5200C59}.txt" Cache_Path[Path] Line0002 = "97DE-1D53-40B7-8A9D-7223F5200C59}.txt"
...@@ -105,3 +97,11 @@ Cache_Path[Path] Line0002 = "65E5-8814-4D90-A29A-B6A1C1434648}.txt" ...@@ -105,3 +97,11 @@ Cache_Path[Path] Line0002 = "65E5-8814-4D90-A29A-B6A1C1434648}.txt"
Cache_Path[Path] Line0001 = "/C/Users/dgeerts/AppData/Local/Temp/AB_Cache_{1E71" Cache_Path[Path] Line0001 = "/C/Users/dgeerts/AppData/Local/Temp/AB_Cache_{1E71"
Cache_Path[Path] Line0002 = "8B13-4A58-4E49-AEEB-0F854516A69C}.txt" Cache_Path[Path] Line0002 = "8B13-4A58-4E49-AEEB-0F854516A69C}.txt"
[AB_Cache_{86B3B92D-CED4-404C-B6DE-D76A94737DEE}]
Cache_Path[Path] Line0001 = "/C/Users/dgeerts/AppData/Local/Temp/AB_Cache_{86B3"
Cache_Path[Path] Line0002 = "B92D-CED4-404C-B6DE-D76A94737DEE}.txt"
[AB_Cache_{BC18E29A-3C28-4235-912C-852E130379D5}]
Cache_Path[Path] Line0001 = "/C/Users/dgeerts/AppData/Local/Temp/AB_Cache_{BC18"
Cache_Path[Path] Line0002 = "E29A-3C28-4235-912C-852E130379D5}.txt"
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment