Skip to content

Conversation

horho77
Copy link

@horho77 horho77 commented Jul 22, 2025

This PR adds a simple iOS/macOS L2CAP peripheral example that echoes received data back to the central device.

I'm not sure this is unique enough to be justified to be in examples. Let me know.
Thanks 😊

@lulf
Copy link
Member

lulf commented Jul 22, 2025

Could you perhaps modify the l2cap peripheral example to publish the gatt service instead?

@horho77
Copy link
Author

horho77 commented Jul 22, 2025

Could you perhaps modify the l2cap peripheral example to publish the gatt service instead?

Are you suggesting to modify both peripheral & central L2CAP examples to use the "dynamic PSM" by default? Just to make sure I understand your comment right....

@lulf
Copy link
Member

lulf commented Jul 28, 2025

Could you perhaps modify the l2cap peripheral example to publish the gatt service instead?

Are you suggesting to modify both peripheral & central L2CAP examples to use the "dynamic PSM" by default? Just to make sure I understand your comment right....

Yes, that's correct. If structured in a way that makes it possible to "rip out" the gatt part if needed. The trouble-host features needed to use gatt are already there so I don't think it will make them too noise. And it's easier to maintain than another example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants