OpenBluetoothToolbox / SimpleBLE

SimpleBLE - the all-in-one Bluetooth library for MacOS, iOS, Windows, Linux and Android.
https://www.simpleble.org
Other
711 stars 118 forks source link

C Callback functions still not including peripheral handle #364

Open eriklins opened 3 hours ago

eriklins commented 3 hours ago

Has someone used the new C callback functions with the peripheral handle exposed as first parameter into the callbacks?

I compiled the latest commit from github (says 0.8.2 from simpleble_get_version()) on Mac OS into a .dylib. When using simpleble_peripheral_notify() I do still receive the service uuid as 1st parameter and characteristic uuid as 2nd, but 1st should be the handle now and so on.

I use the C version, not CPP.

Do I need to checkout a specific commit for that? I had assumed it should be available with 0.8.1 latest.

eriklins commented 3 hours ago

However, the C examples are working properly... But they don't use SimpleBLE as dylib. Any chance that declaration differs when building SimpleBLE as dylib?