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

◆ parser_get_payload()

int parser_get_payload ( struct parser * parser,
char * buf,
uint8_t buf_size )

Get the payload.

This function will fill a user supplied buffer with payload data.

Parameters
[in]parserParser instance.
[in,out]bufA user supplied buffer to put payload data into.
[in]buf_sizeHow much can be stored in the buffer
Returns
Zero if successful, negative value in error cases.