Enable multiple EDR connection in Android.
authorJaehong Jo <jaehong.jo@samsung.com>
Thu, 19 Nov 2015 02:45:50 +0000 (11:45 +0900)
committerJon A. Cruz <jonc@osg.samsung.com>
Mon, 23 Nov 2015 20:22:02 +0000 (20:22 +0000)
commit88e5f2dbb60c84a43c8edea64bb15321677ec2ee
treec0094bd6011f31aecd098469ccaf212e1cebe48c
parent14133c0b6845bbdbbc2310df3d1e7e5aec2c814d
Enable multiple EDR connection in Android.

Using Available API before using blocking EDR read function.
Bluetooth read function is a blocking function which makes other connection to wait.
So added checking the packet availability before making blocking read.

Change-Id: I794a4010ae6ad3e21c63f3a9e3e9d3fc0d89cad5
Signed-off-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/4277
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
resource/csdk/connectivity/src/bt_edr_adapter/android/caedrserver.c
resource/csdk/connectivity/src/bt_edr_adapter/android/caedrutils.c