akexorcist / BluetoothSPPLibrary

[UNMAINTAINED][Android] Bluetooth Serial Port Profile which comfortable to developer application to communication with microcontroller via bluetooth
Apache License 2.0
1.7k stars 570 forks source link

Determine if message was sent or not #67

Open poralcode opened 7 years ago

poralcode commented 7 years ago

@akexorcist , Hello!

How to determine if the message was successfully sent or not?

membrown commented 7 years ago

Hello, use android standard api. one of good ways to ensure success data transmission is, when you send data to another side for example another device, then that device should pass an acknowledge to you. for this two way communication you should open both outputstream and inputstream (see developer.android.com bluetooth sample codes). but may there are another ways too. good luck.

On Fri, Dec 9, 2016 at 5:41 PM, Poral notifications@github.com wrote:

@akexorcist https://github.com/akexorcist , Hello!

How to determine if the message was successfully sent or not?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/akexorcist/Android-BluetoothSPPLibrary/issues/67, or mute the thread https://github.com/notifications/unsubscribe-auth/ADqfo7nYnsZ-xGcOr2VJ9fRHLLGWHF2bks5rGWGGgaJpZM4LI-ZO .

poralcode commented 7 years ago

Good Idea. I'll try it. Thanks!