dionifreitas / playr-remote

A BLE Keyboard on ESP32 (that can be be used on Home Assistant) to control devices over bluetooth. (Works with alexa devices too!)
MIT License
12 stars 1 forks source link

combination doesn't work #3

Open gekberlin opened 2 years ago

gekberlin commented 2 years ago

Hi great setup,

everything works great except for the send of shortcuts, e.g.:

D;42\n D;58\n D;38\n U;42\n U;58\n U;38\n

is not registered from the host as [Shift] + [Caps_Lock] + [l]

Any suggestion how to solve that problem ? Tested under Windows, ChromeOS and with direct serial communication to the ESP32 with ArduinoIE

dionifreitas commented 2 years ago

Hi. I think there is a problem with the arduino serial monitor (and line breaks). The easiest solution for you is change message = Serial.readStringUntil('\n'); to message = Serial.readStringUntil('#'); then you can use: D;42#D;58#D;38#U;42#U;5#U;38# Tell me if it works for you! I tested here and it worked