react-native-ble-manager icon indicating copy to clipboard operation
react-native-ble-manager copied to clipboard

where is the event manager doc for version 11.5.7?

Open diffent opened this issue 8 months ago • 4 comments

in your version 12 release notes it says this:

"Event handling has changed, check the documentation to find the differences."

we are stuck at ble manager 11.5.7 for now due to using a slightly older react-native version, can you tell us where to find the event handler documentation for this older version?

thanks!

diffent avatar Mar 30 '25 20:03 diffent

You can use the previous implementation which is bleManager.addEventListener('onStopScan') for example.

lucaswitch avatar Mar 31 '25 16:03 lucaswitch

hello thanks,

if anyone else is looking for this, we found in the old version that some of the events need a string 'BleManager' prefix like this:

BleManager.addListener('BleManagerDidUpdateValueForCharacteristic', (event) => { console.log("event", event) })

the error messages clued us in

just getting started on this module, so don't know if this is universal for all events

diffent avatar Mar 31 '25 17:03 diffent

It's unfortunate that docs for v11 are not accessible anymore. Anyway these are the supported events as defined in the ios v11 project:

"BleManagerDidUpdateValueForCharacteristic", "BleManagerStopScan", "BleManagerDiscoverPeripheral", "BleManagerConnectPeripheral", "BleManagerDisconnectPeripheral", "BleManagerDidUpdateState", "BleManagerCentralManagerWillRestoreState", "BleManagerDidUpdateNotificationStateFor"

CptFabulouso avatar May 07 '25 13:05 CptFabulouso

Thank you. Very helpful.

diffent avatar May 07 '25 13:05 diffent

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

marcosinigaglia avatar Aug 06 '25 02:08 marcosinigaglia