We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e24cff commit a3bd39dCopy full SHA for a3bd39d
1 file changed
micropython/bluetooth/aioble/aioble/l2cap.py
@@ -141,6 +141,7 @@ async def send(self, buf, timeout_ms=None, chunk_size=None):
141
if self._stalled:
142
await self.flush(timeout_ms)
143
# l2cap_send returns True if you can send immediately.
144
+ self._assert_connected()
145
self._stalled = not ble.l2cap_send(
146
self._connection._conn_handle,
147
self._cid,
0 commit comments