InsufficientSpace error when sending notification with byte array in characteristic #339
-
Dear all, I am trying to stream a few hundred bytes regularly from a characteristic. I was able to create an byte array and set it as the value of a characteristic thanks to #334 : However, when I send notification with 320 Bytes, I received I suppose there's a maximum length for the notification data. If so, is it still possible to use GATT to regularly stream hundreds of Bytes? The data chunk I plan to stream is around 640 Bytes. If notification doesn't fit the application, would you suggest some other methods? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Try to adjust your l2cap MTU to fit the notification size. (Set as a generic on HostResources, potentially also on your controller settings depending on which controller). For this kind of application, I would recommend looking into l2cap connection oriented channels though, as it is more appropriate for streaming. |
Beta Was this translation helpful? Give feedback.
Could be there some other bottlenecks, might be worth checking with wireshark.
It's not a huge difference performance wise, some less hops/no intermediary storage on the device. But the API for l2cap is more UDP-like with send() recv() data on a channel.