MCPcopy Create free account
hub / github.com/BruceDevices/firmware / sendString

Method sendString

src/modules/ble/BLE_Suite.cpp:1718–1725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1716}
1717
1718bool 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
1727bool HIDDuckyService::sendSpecialKey(NimBLERemoteCharacteristic *pChar, const String &key) {
1728 uint8_t modifier = 0, keycode = 0;

Callers

nothing calls this directly

Calls 1

charToKeycodeMethod · 0.80

Tested by

no test coverage detected