This commit is contained in:
hathach committed 2017-07-11 14:31:37 +07:00
1 parent 4e3d92cc2a
commit cb589bd7e7
4 files changed
+4 -11

No files matched your search

+2 -3
View File
@@ -60,9 +60,6 @@ connInterval KEYWORD2
requestPairing KEYWORD2
clearBonds KEYWORD2
peerAddr KEYWORD2
getTxPacket KEYWORD2
setConnectCallback KEYWORD2
setDisconnectCallback KEYWORD2
@@ -88,6 +85,8 @@ setDisconnectCallback KEYWORD2
# BLEGap Methods (KEYWORD2)
#######################################
getPeerName KEYWORD2
getPeerAddr KEYWORD2
getTxPacket KEYWORD2
#######################################
@@ -477,7 +477,8 @@ bool BLECharacteristic::notify(const void* data, uint16_t len)
while ( remaining )
{
if ( !Bluefruit.Gap.getTxPacket() ) return BLE_ERROR_NO_TX_PACKETS;
// TODO multiple connection support
if ( !Bluefruit.Gap.getTxPacket( Bluefruit.connHandle() ) ) return BLE_ERROR_NO_TX_PACKETS;
uint16_t packet_len = min16(MTU_MPS, remaining);
-5
View File
@@ -82,11 +82,6 @@ ble_gap_addr_t BLEGap::getPeerAddr(uint16_t conn_handle)
return _peers[conn_handle].addr;
}
bool BLEGap::getTxPacket(void)
{
return getTxPacket( Bluefruit.connHandle() );
}
bool BLEGap::getTxPacket(uint16_t conn_handle)
{
VERIFY( (conn_handle < BLE_MAX_CONN) && (_peers[conn_handle].txpacket_sem != NULL) );
-2
View File
@@ -54,8 +54,6 @@ class BLEGap
ble_gap_addr_t getPeerAddr(uint16_t conn_handle);
uint16_t getPeerName(uint16_t conn_handle, char* buf, uint16_t bufsize);
bool getTxPacket(void);
bool getTxPacket(uint16_t conn_handle);
void setConnectCallback (connect_callback_t fp, bool isCentral);