BLE_HOGPS_SendKeyboardInputReport
C
uint16_t BLE_HOGPS_SendKeyboardInputReport(uint16_t connHandle, uint8_t *p_keyCodeArray);Description
Sends a HID keyboard input report.
Note
This function transmits a report containing keyboard keypress information to a connected BLE host using the specified connection handle.
Parameters
| Parameter | Description |
|---|---|
| [in] connHandle | The connection handle associated with the connection. |
| [in] p_keyCodeArray | A pointer to an array of 8 bytes representing the HID report. The array structure is as follows: |
- Byte 0: Modifier keys (e.g., Shift, Ctrl) - Byte 1: Reserved (must be 0) - Bytes 2-7: Key codes (up to 6 keys that are currently pressed)|
Return values
| Return value | Description |
|---|---|
| MBA_RES_SUCCESS | The transmission of the input report was successful. |
| MBA_RES_OOM | Internal memory allocation failure. |
| MBA_RES_INVALID_PARA | The parameters provided are invalid. |
