mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-22 13:10:55 +01:00
add NimBLEHIDDevice::batteryLevel()
This commit is contained in:
parent
cd3185fe43
commit
32e7059732
2 changed files with 4 additions and 4 deletions
|
@ -203,12 +203,12 @@ void NimBLEHIDDevice::setBatteryLevel(uint8_t level) {
|
||||||
/*
|
/*
|
||||||
* @brief Returns battery level characteristic
|
* @brief Returns battery level characteristic
|
||||||
* @ return battery level characteristic
|
* @ return battery level characteristic
|
||||||
*//*
|
*/
|
||||||
BLECharacteristic* BLEHIDDevice::batteryLevel() {
|
NimBLECharacteristic* NimBLEHIDDevice::batteryLevel() {
|
||||||
return m_batteryLevelCharacteristic;
|
return m_batteryLevelCharacteristic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
BLECharacteristic* BLEHIDDevice::reportMap() {
|
BLECharacteristic* BLEHIDDevice::reportMap() {
|
||||||
return m_reportMapCharacteristic;
|
return m_reportMapCharacteristic;
|
||||||
|
|
|
@ -55,7 +55,7 @@ public:
|
||||||
void pnp(uint8_t sig, uint16_t vid, uint16_t pid, uint16_t version);
|
void pnp(uint8_t sig, uint16_t vid, uint16_t pid, uint16_t version);
|
||||||
//NimBLECharacteristic* hidInfo();
|
//NimBLECharacteristic* hidInfo();
|
||||||
void hidInfo(uint8_t country, uint8_t flags);
|
void hidInfo(uint8_t country, uint8_t flags);
|
||||||
//NimBLECharacteristic* batteryLevel();
|
NimBLECharacteristic* batteryLevel();
|
||||||
void setBatteryLevel(uint8_t level);
|
void setBatteryLevel(uint8_t level);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue