Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF_LOG_INFO to print full array

static void scan_evt_handler(scan_evt_t const * p_scan_evt)
{

switch(p_scan_evt->scan_evt_id)
{

case NRF_BLE_SCAN_EVT_FILTER_MATCH:
data = p_scan_evt->params.filter_match.p_adv_report->data.p_data;
len = p_scan_evt->params.filter_match.p_adv_report->data.len;
//NRF_LOG_INFO(data); -- > I want to send received ADV report to UART

SDK - 17.0.2

I am trying to send a full array to UART which I am monitoring on TERATERM in my PC. Could you please suggest me a way to receive full array as it is on the UART port in my PC. 

I tried NRF_LOG_HEXDUMP_INFO(data, len), but it is giving extra characters for hexdump, which I dont need. I need raw data, only the ADV data in a stretch. Could you please help me

Parents Reply Children
No Data
Related