Hi, probably a simple answer to this but am struggling to find a decent answer on the web.
There is a function (below) and I would like to watch the p_adv_report. However I am not sure what the variable type "const *" means. Is it a pointer to somewhere?
/**@brief Function for handling the advertising report BLE event. * * @param[in] p_adv_report Advertising report from the SoftDevice. */ static void on_adv_report(ble_gap_evt_adv_report_t const * p_adv_report) { ret_code_t err_code; test = p_adv_report->data.len; if (ble_advdata_name_find(p_adv_report->data.p_data, p_adv_report->data.len, m_target_periph_name)) { // Name is a match, initiate connection. err_code = sd_ble_gap_connect(&p_adv_report->peer_addr, &m_scan_params, &m_connection_param, APP_BLE_CONN_CFG_TAG); if (err_code != NRF_SUCCESS) { NRF_LOG_ERROR("Connection Request Failed, reason %d", err_code); } } else { err_code = sd_ble_gap_scan_start(NULL, &m_scan_buffer); APP_ERROR_CHECK(err_code); } }
static void on_adv_report(ble_gap_evt_adv_report_t const * p_adv_report)
Basically I would like to create a local variable that I make equal to this report, so I can set a watch on it.
You can see I added a test variable to watch the data length which works ok, but I can't figure out how to watch the whole message.
Thanks
Phil