| 1716 | } |
| 1717 | |
| 1718 | bool HIDDuckyService::sendString(NimBLERemoteCharacteristic *pChar, const String &str) { |
| 1719 | for (size_t i = 0; i < str.length(); i++) { |
| 1720 | DuckyScriptEngine::HIDKeycode kc = duckyEngine.charToKeycode(str.charAt(i)); |
| 1721 | if (!sendHIDReport(pChar, kc.modifier, kc.keycode)) return false; |
| 1722 | delay(30); |
| 1723 | } |
| 1724 | return true; |
| 1725 | } |
| 1726 | |
| 1727 | bool HIDDuckyService::sendSpecialKey(NimBLERemoteCharacteristic *pChar, const String &key) { |
| 1728 | uint8_t modifier = 0, keycode = 0; |
nothing calls this directly
no test coverage detected