Closed Klapautsiy closed 4 years ago
Take a look at https://github.com/T-vK/ESP32-BLE-Keyboard/blob/master/BleKeyboard.h It's not a MEDIA key. It's KEY_LEFT_GUI or KEY_RIGHT_GUI.
thanks. did not notice the elephant in the forest. The code quoted below works correctly on Android 9 Samsung Galaxy M20
// run AIMP bleKeyboard.press(KEY_LEFT_GUI); bleKeyboard.press('p'); bleKeyboard.releaseAll();
Glad I could help. :)
pause media - KEY_MEDIA_PLAY_PAUSE stop media - KEY_MEDIA_STOP META - ???
https://raw.githubusercontent.com/Klapautsiy/titanium-bicycle-for-button/gh-pages/pictures/ESP32%20BLE%20key%20android%201.jpg