HID Keyboard
The startHidKeyboard
function starts a relay server on the device
and returns a client.
The server emulates a keyboard and can be used to send keystrokes to a computer.
import { startHidKeyboard } from "@devicescript/servers"
const keyboard = startHidKeyboard({})
The service instance name is automatically set to the variable name. In this example, it is set to keyboard
.