This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

why the INVALID_STATE error code appear???And how to solve??

Hi all,

In my keyboard application, I found sometimes it return the INVALID_STATE error code , when called keys_send() , once this error code appeared, no others return by keys_send() again.
But the connection state is always CONNECTED, both in device side and the host side (it displays CONNECTED in the host side).
I want to know:

1.why will it happen while CONNECTED? 2.what could I do to excute the keys_send() correctly?

Thanks a lot.

Jim

Related