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

◆ gzp_id_req_send()

enum gzp_id_req_res gzp_id_req_send ( void  )

#include <include/gzp.h>

Function for sending a "Host ID request" to a Host.

The "Host ID" is needed to be able to send encrypted data using gzp_crypt_data_send().

The request will be sent using the "system address" previously received using gzp_address_req_send().

It is not required that the Host is within close proximity in order to acquire the "Host ID".

The new "Host ID" will apply immediately for the Device, and the new "Host ID" will be stored in non volatile (NV) memory.

Return values
GZP_ID_RESP_PENDINGif a "Host ID request" has been sent to the Host, but the Host application has not yet decided whether to Grant or Reject the "ID request".
GZP_ID_RESP_GRANTEDif the "Host ID" has been received from the Host. The received "Host ID" will be stored in non volatile memory.
GZP_ID_RESP_REJECTEDif the Host application has rejected the "Host ID request".
GZP_ID_RESP_FAILEDif failing to send a request or receive a response from the Host.