iOS Question BLE SetNotify does not return anything

Mike1970

Well-Known Member
Licensed User
Longtime User
Hi everyone, i've used BLE library with Android and i have the necessity to use the SetNotify method.
On Android this method return a boolean value to tell if the operation went ok or not.

On iOS seems that the SetNotify method does not have a return value.

I use the return value to wait for the successfull operation in the Connected event, after calling ReadData...

The problem for me is the following:
Since you must call ReadData and wait for DataAvailable BEFORE call SetNotify, I put this one in the DataAvailable sub.. but in this way everytime a new message arrive a new SetNotify is called, even if i already did that... i've to create a variabe like Dim notify_alread_set as Boolean and check it before SetNotify?


Thanks in advance
 
Top