Smartphone-Companions / ESP32-ANCS-Notifications

Easy-to-use Arduino library for interfacing an ESP 32 with Bluetooth LE ANCS mobile device notifications.
GNU General Public License v3.0
151 stars 24 forks source link

How to access queue #13

Open johnbchron opened 4 years ago

johnbchron commented 4 years ago

First of all, great work! I really appreciate you taking the time to simplify all the bluetooth internals required to interface with the ANCS. Really, it's a blessing. One more time, great job!

This library in its current state is great for printing incoming notifications because you can just register a callback and that's that. However, I would like to keep track of the notifications that have come in and display them all together when needed. Having looked through the source, I see it already keeps track of a default 32 notifications in a stack so that it can follow up with retrieving the rest of the data. I don't want to reinvent the wheel and it seems like it already keeps track of the notifications well, so my question is thus: what outward-facing methods do I write in order to interface with the stack? I've never used something like this before, and don't really know how to work with it. I don't know if this was something you were planning on adding yourself, but if it isn't and it turns out well for me I'll prawly make a pr.

Thanks in advance for your help