introduce BLEGap to manage part of GAP events

This commit is contained in:
hathach committed 2017-03-30 22:59:20 +07:00
1 parent a974333516
commit f4b4ec0470
5 files changed
+173 -43

No files matched your search

@@ -472,7 +472,7 @@ err_t BLECharacteristic::notify(const void* data, int len)
while ( actual_len )
{
if ( !Bluefruit.getTxPacket(100) ) return BLE_ERROR_NO_TX_PACKETS;
if ( !Bluefruit.Gap.getTxPacket() ) return BLE_ERROR_NO_TX_PACKETS;
uint16_t packet_len = min16(MTU_MPS, actual_len);