I am working on an iOS Bluetooth LE app. The functionality with which I can follow correctly and successfully is as follows:
- Peripheral device discovery.
- Connection to a peripheral device.
- Getting services and features.
- The ability to read data from the characteristics when you click the read button.
- Ability to record data.
Here I ran into a problem, I only need to read the incoming data when the BLE device passes it to the application. I explicitly read the specifications when the button is clicked. My BLE device continuously transmits some data at specific intervals, but I cannot receive it.
I also set setNotify by characteristics, but did not have time on it.
[peripheral setNotifyValue:YES forCharacteristic:characteristic]
How can my application be notified by a BLE device event (sending it to the application)? Please help me here or suggest something.
Thanks in advance.
source share