iOS Question How to customize my BLE library

Filippo

Expert
Licensed User
Longtime User
Hi,

I have to adapt my BLE-library to the new AT-09 module, because of firmware version change.
Until firmware version 5.3 I could send data with the function "BleManager.WriteData()".
Now I got modules with firmware version 6.3 and it doesn't work anymore, I have to send data with "BleManager.WriteDataWithResponse()".

But, how can I know from the code when to use "BleManager.WriteData()" or "BleManager.WriteDataWithResponse()"?
Is there a solution or a tip?
 
Solution
I have solved it myself.

I send the data first with "BleManager.WriteData()", if after a certain time no answer comes, then I send the data again with "BleManager.WriteDataWithResponse()".

Filippo

Expert
Licensed User
Longtime User
I have solved it myself.

I send the data first with "BleManager.WriteData()", if after a certain time no answer comes, then I send the data again with "BleManager.WriteDataWithResponse()".
 
Upvote 0
Solution
Top