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

ParameterDescription
[in] connHandleThe connection handle associated with the connection.
[in] p_keyCodeArrayA 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 valueDescription
MBA_RES_SUCCESSThe transmission of the input report was successful.
MBA_RES_OOMInternal memory allocation failure.
MBA_RES_INVALID_PARAThe parameters provided are invalid.