Closed ricardoquesada closed 7 months ago
Hi @ricardoquesada - the first bug was actually that the wrong packet handler was registered. With that in place, the state is set back to connected correctly. However, there was no event that indicates that the write is complete. I've changed the code to emit an empty GATTSERVICE_SUBEVENT_HID_REPORT. What do you think about this? Does this work for you?
Thanks. works great.
Describe the bug
After calling
hids_client_send_write_report()
, the client state does not return toHIDS_CLIENT_STATE_CONNECTED
. It remains onHIDS_CLIENT_W4_WRITE_REPORT_DONE
.To Reproduce
Just call
hids_client_send_write_report()
.It seems that
handle_report_event
is ignoring theGATT_EVENT_QUERY_COMPLETE
event triggered bygatt_client_write_value_of_characteristic()
, and the client state remains atHIDS_CLIENT_W4_WRITE_REPORT_DONE