- From central i am able to connect with Peripheral device and able to read the GATT data.
- Once peripheral connected i am opening the L2CAPChannel from central, which established successfully(logs i can see in Hercules Simulator).
- When i am sending data from central to peripheral(hardware) it's sent successfully.
- 2nd time when i am sending data getting SocketStream write error [0x0]: 1 22
- 3rd time again when i hit l2CapChannel.outputStream.write it is not call stream delegate method with self.l2capChannel?.outputStream.hasSpaceAvailable false every time.
- Also when peripheral (Hardware) send any data to central, my stream delegate method not called.
Asked
Active
Viewed 23 times
1

jnpdx
- 45,847
- 6
- 64
- 94

Jack Farnandish
- 151
- 2
- 11
-
1Did you get any solution? I am facing the same challenge. – iGautam Aug 25 '23 at 19:01
1 Answers
0
I am ble to fix the issue, as i was opening L2CAPChannel on button click, but i did it on didUpdate char**, It's working fine for me.

Jack Farnandish
- 151
- 2
- 11