Skip to content

Commit

Permalink
Merge pull request #8 from dvv/patch-1
Browse files Browse the repository at this point in the history
Allow for additional services like logging
  • Loading branch information
T-vK authored Apr 26, 2020
2 parents 9230502 + 56c8ac4 commit bd27700
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BleMouse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ void BleMouse::taskServer(void* pvParameter) {
bleMouseInstance->hid->reportMap((uint8_t*)_hidReportDescriptor, sizeof(_hidReportDescriptor));
bleMouseInstance->hid->startServices();

bleKeyboardInstance->onStarted(pServer);

BLEAdvertising *pAdvertising = pServer->getAdvertising();
pAdvertising->setAppearance(HID_MOUSE);
pAdvertising->addServiceUUID(bleMouseInstance->hid->hidService()->getUUID());
Expand Down
2 changes: 2 additions & 0 deletions BleMouse.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ class BleMouse {
uint8_t batteryLevel;
std::string deviceManufacturer;
std::string deviceName;
protected:
virtual void onStarted(BLEServer *pServer) { };
};

#endif // CONFIG_BT_ENABLED
Expand Down

0 comments on commit bd27700

Please sign in to comment.