Hi,
currently I'm developing IOS application to connect with ble. I can connect IOS with ble, but after send data from IOS to ble the connection is lost.
I'm using example project as base for my project. Where is the problem? is it in ble or IOS application?
Thank you
Device:
Hi Kevleo94,
您能说的具体些你的追求呢ion? In which ble example are you working on and in which SDK version?
Thanks, PM_Dialog
I'm using SDK 5.0.4 and ble example as my base project
Hi Kevleo94,
Your description is quite generic there are quite a few reasons for a disconnection to occur, are you able to keep a connection alive with a generic iOS application, if not are you able to do the same with an android device ? Have you checked in the disconnection callback the reason for the disconnection? Please check the above. Also a sniffer log would also help in clear things out.
Thanks, PM_Dialog
Hi,
in android app it works normally.
In my ios application, I got error code 6 = "The connection has timed out unexpectedly" after the data was sent. In LightBlue application (IOS Generic Application for bluetooth) I got "Disconnect, Data is stale" after the data was sent.
Hi Kevleo94,
If it works correctly with an Android and iOS Generic application, then its an issue of your custom application.
Thanks, PM_Dialog
It is not working on IOS generic application(It can connect and then disconnect again after data was sent). Does IOS need some requirement for BLE?
I need some clues or recommendation to solve this problem
Thank you
Hi Kevleo94,
There isn’t a specific configuration for sending data from and to your application when using an Ios device. When the device disconnects the user_app_disconnect() callback function is executed, but which is the reason of the disconnection? Please try to debug your code when the user_app_disconnect() hits. Did you face the same problem with a ble example of the SDK? Also, as I mentioned you in a previous post, using a sniffer log would also help in clearing things out.
Thanks, PM_Dialog