troystribling / BlueCap

iOS Bluetooth LE framework
MIT License
714 stars 114 forks source link

Is there a way to enqueue read/writes? #87

Open dbalatoni13 opened 4 years ago

dbalatoni13 commented 4 years ago

With the current library I am using for Android, I do something like this:

writeCharacteristic(callback1).enqueue() waitForNotification(callback1).enqueue()

I don't have a general callback for notifications.

This is nice because I am interested in the value only after writes, I can use a different callback for different messages to keep things organized and I can put a lot of these in a queue and nothing gets mixed up.

Is it possibly to do something like this on iOS?