Hello , i want to use ble manager in different component and the best way i think is with redux , but i 'dont know how to use it with BleManager() . thanks for your help
You can create BleManager in redux-saga's generator which is then added to your redux as middleware. With redux-saga it is quite easy to handle asynchronous actions and emit new ones which will change your store and effectively your components.
thank you @Cierpliwy for you're ansewr but can you give me some exemple to understand more
@Cierpliwy I am finally getting a grasp on redux-saga. I think it's going to help with alot of my issues. Can you provide a basic structure for how you would set up the ble manager with redux saga? Specifically to properly prepare for monitoring characteristics.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I don't know if you, @karimraoudy was able to get an example for understand more, but @Cierpliwy did a perfect example.
https://github.com/Cierpliwy/SensorTag
Most helpful comment
I don't know if you, @karimraoudy was able to get an example for understand more, but @Cierpliwy did a perfect example.
https://github.com/Cierpliwy/SensorTag