Skip to content

Commit

Permalink
Update BleKeyboard.h
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterHindes authored Nov 11, 2022
1 parent f8dd485 commit 4dd0c0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BleKeyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ typedef struct
uint8_t modifiers;
uint8_t reserved;
uint8_t keys[6];
} KeyReport;
} BLEKeyReport;

class BleKeyboard : public Print, public BLEServerCallbacks, public BLECharacteristicCallbacks
{
Expand All @@ -136,7 +136,7 @@ class BleKeyboard : public Print, public BLEServerCallbacks, public BLECharacter
BLECharacteristic* outputKeyboard;
BLECharacteristic* inputMediaKeys;
BLEAdvertising* advertising;
KeyReport _keyReport;
BLEKeyReport _keyReport;
MediaKeyReport _mediaKeyReport;
std::string deviceName;
std::string deviceManufacturer;
Expand All @@ -153,7 +153,7 @@ class BleKeyboard : public Print, public BLEServerCallbacks, public BLECharacter
BleKeyboard(std::string deviceName = "ESP32 Keyboard", std::string deviceManufacturer = "Espressif", uint8_t batteryLevel = 100);
void begin(void);
void end(void);
void sendReport(KeyReport* keys);
void sendReport(BLEKeyReport* keys);
void sendReport(MediaKeyReport* keys);
size_t press(uint8_t k);
size_t press(const MediaKeyReport k);
Expand Down

0 comments on commit 4dd0c0b

Please sign in to comment.