E elpic76 Member Licensed User Longtime User Mar 22, 2016 #1 Dear all, I'm fighting with a BLE112 configured as Cable Replacement Service and it works fine with BlueGiga app. When I send a char, in particular 'b', it replies with an 'a'. I can't see the character sent back so I think the method WriteData of BLE2 library is set to work in "write without response". Is it possible? In the following post regarding iBLE v.13: https://www.b4x.com/android/forum/threads/updates-to-internal-libraries.48179/page-2#post-387448 Erel added the possibility to "write with response": iBLE v1.3 - New WriteDataWithResponse. This method sets the CBCharacteristicWriteWithResponse flag which means that a response is expected. The BLE2 Library is similar to iBLE v.13? So is it possible to enable the "write with response"? If yes how can do that? Best Regards. Mosè
Dear all, I'm fighting with a BLE112 configured as Cable Replacement Service and it works fine with BlueGiga app. When I send a char, in particular 'b', it replies with an 'a'. I can't see the character sent back so I think the method WriteData of BLE2 library is set to work in "write without response". Is it possible? In the following post regarding iBLE v.13: https://www.b4x.com/android/forum/threads/updates-to-internal-libraries.48179/page-2#post-387448 Erel added the possibility to "write with response": iBLE v1.3 - New WriteDataWithResponse. This method sets the CBCharacteristicWriteWithResponse flag which means that a response is expected. The BLE2 Library is similar to iBLE v.13? So is it possible to enable the "write with response"? If yes how can do that? Best Regards. Mosè
Erel B4X founder Staff member Licensed User Longtime User Mar 23, 2016 #2 There is no such method in Android. Android determines the writing type based on the characteristics properties. You can try the code I posted here: https://www.b4x.com/android/forum/threads/ble-2-bluetooth-low-energy.59937/page-2#post-388226 (don't update the library). Upvote 0
There is no such method in Android. Android determines the writing type based on the characteristics properties. You can try the code I posted here: https://www.b4x.com/android/forum/threads/ble-2-bluetooth-low-energy.59937/page-2#post-388226 (don't update the library).