nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ bt_hogp_pm_update()

int bt_hogp_pm_update ( struct bt_hogp hogp,
k_timeout_t  timeout 
)

#include <include/bluetooth/services/hogp.h>

Read the current protocol mode from the server.

The callback is called when a read response is received.

Note
  • Usually, the protocol mode value is read during HIDS client preparation, and its value is followed after that. This function may be used in an error recovery situation and should not be required in normal usage.
  • This function uses the common read parameters structure inside the HOGP object. This object may be used by other functions and is protected by semaphore.
See also
bt_hogp_pm_get
Parameters
hogpHOGP object.
timeoutTime-out for the common read structure usage.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.