MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / _send_frame

Function _send_frame

tests/integration/test_2d_array_parsing.py:93–97  ·  view source on GitHub ↗

Send a JSON frame to Serial Studio.

(api_client, device_simulator, payload: dict)

Source from the content-addressed store, hash-verified

91
92
93def _send_frame(api_client, device_simulator, payload: dict):
94 """Send a JSON frame to Serial Studio."""
95 frame = f"/*{json.dumps(payload)}*/"
96 device_simulator.send_frame(frame.encode())
97 time.sleep(0.3)
98
99
100def _connect_device(api_client, device_simulator):

Calls 1

send_frameMethod · 0.45

Tested by

no test coverage detected