8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ea7486 commit a61bfc1Copy full SHA for a61bfc1
micropython/bluetooth/aioble/README.md
@@ -123,6 +123,25 @@ while True:
123
data = await temp_char.notified()
124
```
125
126
+Open L2CAP channels: (Listener)
127
+
128
+```py
129
+channel = await connection.l2cap_accept(_L2CAP_PSN, _L2CAP_MTU)
130
+buf = bytearray(64)
131
+n = channel.recvinto(buf)
132
+channel.send(b'response')
133
+```
134
135
+Open L2CAP channels: (Initiator)
136
137
138
+channel = await connection.l2cap_connect(_L2CAP_PSN, _L2CAP_MTU)
139
+channel.send(b'request')
140
141
142
143
144
145
Examples
146
--------
147
0 commit comments