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

Method send_batch

examples/API Test/test_api.py:382–390  ·  view source on GitHub ↗
(
        self, commands: list[dict], request_id: Optional[str] = None
    )

Source from the content-addressed store, hash-verified

380 return self.send_json(msg)
381
382 def send_batch(
383 self, commands: list[dict], request_id: Optional[str] = None
384 ) -> Optional[dict]:
385 msg = {
386 "type": MessageType.BATCH,
387 "id": request_id or str(uuid.uuid4()),
388 "commands": commands,
389 }
390 return self.send_json(msg)
391
392 def has_data_available(self, timeout: float = 0.0) -> bool:
393 if not self.socket:

Callers 2

test_protocolFunction · 0.80
cmd_batchFunction · 0.80

Calls 1

send_jsonMethod · 0.95

Tested by

no test coverage detected