rename Gap.getConnection() to simply Connection()
This commit is contained in:
9 files changed
+21
-21
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
|
||||
BLEConnection* conn = Bluefruit.Gap.getConnection( Bluefruit.connHandle() );
|
||||
BLEConnection* conn = Bluefruit.Gap.Connection( 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
|
||||
BLEConnection* conn = Bluefruit.Gap.getConnection( Bluefruit.connHandle() );
|
||||
BLEConnection* conn = Bluefruit.Gap.Connection( Bluefruit.connHandle() );
|
||||
|
||||
uint16_t const gatt_mtu = conn->getMtu() - 3;
|
||||
uint8_t* ff_data = (uint8_t*) rtos_malloc( gatt_mtu );
|
||||
|
||||
Reference in new issue
Block a user