This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Change UUID programatically

I would like to change UUID programatically,initially we are trying to establish connection between phone and beacon. We tried to change BLE_GAP_ADV_TYPE_ADV_NONCONN_IND to BLE_GAP_ADV_TYPE_ADV_IND and added m_adv_params.interval = NON_CONNECTABLE_ADV_INTERVAL in advertising_init(), but beacon stopped transmitting. Can any one help me?

We are using ibeacon example for this.

Parents
  • 99.9% you put a bad parameter in the structure and the advertising init function returned an error and one of the APP_ERROR_CHECK()s sent you to the application error handler.

    Go put a breakpoint in that and you'll have a stack trace and an error code and you can work out from there what bad parameter you set.

  • err_code = ble_advdata_set(&advdata, &srdata); APP_ERROR_CHECK(err_code); right?

Reply Children
No Data