MCPcopy Create free account
hub / github.com/FastLED/FastLED / write

Method write

ci/util/ble_interface.py:91–96  ·  view source on GitHub ↗

Write string data to RX characteristic (host -> device).

(self, data: str)

Source from the content-addressed store, hash-verified

89 self._client = None
90
91 async def write(self, data: str) -> None:
92 """Write string data to RX characteristic (host -> device)."""
93 if not self._client or not self._client.is_connected:
94 raise RuntimeError("BLE not connected")
95 payload = data.encode("utf-8")
96 await self._client.write_gatt_char(BLE_CHAR_RX_UUID, payload, response=True)
97
98 async def read_lines(self, timeout: float) -> AsyncIterator[str]:
99 """Async iterator yielding lines received via BLE NOTIFY.

Callers 15

run_ble_autoresearchFunction · 0.95
mainFunction · 0.45
_fetch_schemaMethod · 0.45
send_rpcMethod · 0.45
run_testMethod · 0.45
run_monitorFunction · 0.45
sendMethod · 0.45
send_and_matchMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by 1