Hi,
How do I receive data from host (computer) on my BLE device(Nordic board)? I want to use a simple open source HID API to send data to Nordic board and glow an led or store the data in a buffer & display it using nrf log. How do I do that?
Hi,
How do I receive data from host (computer) on my BLE device(Nordic board)? I want to use a simple open source HID API to send data to Nordic board and glow an led or store the data in a buffer & display it using nrf log. How do I do that?
Have you looked at the HID examples in the SDK?
Let me tell you hid keyboard & mouse example codes do not send any data to HID API. The keys are recognized and alphabet gets printed. I tried this example https://github.com/jayyf/ble_hid_radial_controller, but I'm getting driver error. So how do I fetch data from the host?
hid keyboard & mouse example codes do not send any data to HID API
That's not what the description of the HID Keyboard Application says:
(actually points 6 & 7 - under 'Testing')
And that GitHub repository has this note:
If comment out the macro OUTPUT_REPORT_ENABLE and macro FEATURE_REPORT_ENABLE,the project will only used input report and it will run successfully.
So have you looked at what code is controlled by those macros?
That would be the code that you need ...
hid keyboard & mouse example codes do not send any data to HID API
That's not what the description of the HID Keyboard Application says:
(actually points 6 & 7 - under 'Testing')
And that GitHub repository has this note:
If comment out the macro OUTPUT_REPORT_ENABLE and macro FEATURE_REPORT_ENABLE,the project will only used input report and it will run successfully.
So have you looked at what code is controlled by those macros?
That would be the code that you need ...
I agree to your points. But the OUTPUT_REPORT_BIT_MASK_CAPS_LOCK uses the default value in HID table. What if it was an arbitrary value? So instead of caps lock should I keep polling for a value from host (HID API) and then may be light an led?