Hi. I try to nus + pwm.. I am using github.com/.../nrf51-pwm-library .. When I combine 'ble_app_template' + nrf_pwm, it works fine.. but 'ble_app_uart' + nrf_pwm is not work...
static void advertising_init(void) { uint32_t err_code; ble_advdata_t advdata; ble_advdata_t scanrsp; uint8_t flags = BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE;
ble_uuid_t adv_uuids[] = {{BLE_UUID_NUS_SERVICE, m_nus.uuid_type}};
memset(&advdata, 0, sizeof(advdata));
advdata.name_type = BLE_ADVDATA_FULL_NAME;
advdata.include_appearance = false;
advdata.flags.size = sizeof(flags);
advdata.flags.p_data = &flags;
memset(&scanrsp, 0, sizeof(scanrsp));
scanrsp.uuids_complete.uuid_cnt = sizeof(adv_uuids) / sizeof(adv_uuids[0]);
scanrsp.uuids_complete.p_uuids = adv_uuids;
err_code = ble_advdata_set(&advdata, &scanrsp);
APP_ERROR_CHECK(err_code);
}
this is function of my 'ble_app_uart' + nrf_pwm.. At this function, I try to change 'err_code = ble_advdata_set(&advdata, &scanrsp);' -> 'err_code = ble_advdata_set(&advdata, NULL);'. Then, this is work .. please help me ..
I am using SDK 6.0.0, s110_nrf51822_7.1.0_softdevice