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

◆ gzp_crypt_data_send()

bool gzp_crypt_data_send ( const uint8_t *  src,
uint8_t  length 
)

#include <include/gzp.h>

Function for sending encrypted user data to the Host.

Before any data can be sent the Device must acquire both the Host's "system address" by using gzp_address_req_send() and the "Host ID" by using gzp_id_req_send().

Parameters
srcis a pointer to the data packet to be sent.
lengthis the length of the data packet to be sent.
Return values
trueif the data was successfully transmitted and decrypted by the Host.
falseif data transmission failed or Host failed to decryption data correctly.