clean up
This commit is contained in:
1 parent
3f01e1f069
commit
3b712a04a3
3 files changed
+14
-8
No files matched your search
@@ -600,10 +600,9 @@ uint32_t BLECharacteristic::read32(void)
|
||||
return read(&num, sizeof(num)) ? num : 0;
|
||||
}
|
||||
|
||||
|
||||
uint16_t BLECharacteristic::getCccd(void)
|
||||
{
|
||||
return getCccd(Bluefruit.connHandle());
|
||||
return this->getCccd(Bluefruit.connHandle());
|
||||
}
|
||||
|
||||
uint16_t BLECharacteristic::getCccd(uint16_t conn_hdl)
|
||||
@@ -637,7 +636,7 @@ uint16_t BLECharacteristic::getCccd(uint16_t conn_hdl)
|
||||
*------------------------------------------------------------------*/
|
||||
bool BLECharacteristic::notifyEnabled(void)
|
||||
{
|
||||
return notifyEnabled(Bluefruit.connHandle());
|
||||
return this->notifyEnabled(Bluefruit.connHandle());
|
||||
}
|
||||
|
||||
bool BLECharacteristic::notifyEnabled(uint16_t conn_hdl)
|
||||
@@ -726,7 +725,7 @@ bool BLECharacteristic::notify32(int num, uint16_t conn_hdl)
|
||||
*------------------------------------------------------------------*/
|
||||
bool BLECharacteristic::indicateEnabled(void)
|
||||
{
|
||||
return indicateEnabled(Bluefruit.connHandle());
|
||||
return this->indicateEnabled(Bluefruit.connHandle());
|
||||
}
|
||||
|
||||
bool BLECharacteristic::indicateEnabled(uint16_t conn_hdl)
|
||||
|
||||
@@ -198,6 +198,11 @@ err_t BLEUart::begin(void)
|
||||
return ERROR_NONE;
|
||||
}
|
||||
|
||||
bool BLEUart::notifyEnabled(void)
|
||||
{
|
||||
return this->notifyEnabled(Bluefruit.connHandle());
|
||||
}
|
||||
|
||||
bool BLEUart::notifyEnabled(uint16_t conn_hdl)
|
||||
{
|
||||
return _txd.notifyEnabled(conn_hdl);
|
||||
@@ -243,17 +248,17 @@ int BLEUart::read (uint8_t * buf, size_t size)
|
||||
|
||||
size_t BLEUart::write (uint8_t b)
|
||||
{
|
||||
return write(&b, 1, Bluefruit.connHandle());
|
||||
return this->write(&b, 1, Bluefruit.connHandle());
|
||||
}
|
||||
|
||||
size_t BLEUart::write (const uint8_t *content, size_t len)
|
||||
{
|
||||
return write(content, len, Bluefruit.connHandle());
|
||||
return this->write(content, len, Bluefruit.connHandle());
|
||||
}
|
||||
|
||||
size_t BLEUart::write (uint8_t b, uint16_t conn_hdl)
|
||||
{
|
||||
return write(&b, 1, conn_hdl);
|
||||
return this->write(&b, 1, conn_hdl);
|
||||
}
|
||||
|
||||
size_t BLEUart::write (const uint8_t *content, size_t len, uint16_t conn_hdl)
|
||||
|
||||
@@ -58,7 +58,9 @@ class BLEUart : public BLEService, public Stream
|
||||
|
||||
virtual err_t begin(void);
|
||||
|
||||
bool notifyEnabled (uint16_t conn_hdl = BLE_CONN_HANDLE_INVALID);
|
||||
bool notifyEnabled(void);
|
||||
bool notifyEnabled(uint16_t conn_hdl);
|
||||
|
||||
void setRxCallback (rx_callback_t fp);
|
||||
void bufferTXD (bool enable);
|
||||
|
||||
|
||||
Reference in new issue
Block a user