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

Method send

examples/Camera Telemetry/camera_telemetry.py:94–97  ·  view source on GitHub ↗

Send raw bytes, fragmenting if needed.

(self, data: bytes)

Source from the content-addressed store, hash-verified

92 self.chunk_size = 8_192
93
94 def send(self, data: bytes):
95 """Send raw bytes, fragmenting if needed."""
96 for offset in range(0, len(data), self.chunk_size):
97 self.sock.sendto(data[offset : offset + self.chunk_size], self.addr)
98
99 def send_text(self, text: str):
100 self.sock.sendto(text.encode(), self.addr)

Callers 2

mainFunction · 0.95
senderFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected