OSDN Git Service

LE: Add notification sent and congestion callbacks (1/4)
authorAndre Eisenbach <andre@broadcom.com>
Fri, 28 Mar 2014 21:53:33 +0000 (14:53 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Wed, 25 Jun 2014 21:00:30 +0000 (14:00 -0700)
commit9ef3c72ef3e90a93ed641e757310c2a389d32834
treebdcf7fa2117583eabe773b39549dbb961fd46d26
parentfb5fd093db65913f25d8fcdb962a11030c06874f
LE: Add notification sent and congestion callbacks (1/4)

This change introduces two new callbacks for applications to better
handle LE notification flow control and transport congestion. The
notification callback is invoked when the remote platform confirms an
indication or when a local notification has been passed to the
controller. No new notifications should be sent until a callback is
received.

Congestion callbacks are triggered when a GATT operation cannot be sent
to the local Bluetooth controller. Repeatedly calling
writeCharacteristic() for example will eventually trigger a congestion
callback. Applications cannot send additional data until a further
callback is received, indicating that the congestion has cleared up.

Change-Id: I613cbf968770921f853a407888bb8308849039f3
include/hardware/bt_gatt_client.h
include/hardware/bt_gatt_server.h