rename BLEGapConnection to BLEConnection, move to seperate files

This commit is contained in:
hathach committed 2019-01-18 12:31:40 +07:00
1 parent 6578b3a37f
commit 4e5f419474
11 files changed
+187 -98

No files matched your search

@@ -263,7 +263,7 @@ size_t BLEUart::write (const uint8_t *content, size_t len)
uint16_t written = _tx_fifo->write(content, len);
// TODO multiple prph connections
BLEGapConnection* conn = Bluefruit.Gap.getConnection( Bluefruit.connHandle() );
BLEConnection* conn = Bluefruit.Gap.getConnection( Bluefruit.connHandle() );
// Not up to GATT MTU, notify will be sent later by TXD timer handler
if ( _tx_fifo->count() < (conn->getMTU() - 3) )
@@ -305,7 +305,7 @@ void BLEUart::flush (void)
bool BLEUart::flush_tx_buffered(void)
{
// TODO multiple prph connections
BLEGapConnection* conn = Bluefruit.Gap.getConnection( Bluefruit.connHandle() );
BLEConnection* conn = Bluefruit.Gap.getConnection( Bluefruit.connHandle() );
uint16_t const gatt_mtu = conn->getMTU() - 3;
uint8_t* ff_data = (uint8_t*) rtos_malloc( gatt_mtu );