hello
yes I have problems with my app_timers in SDK14.2 (migration from 12),
I well noticed that the prototypes of the functions create and start changed from sdk12.
// create timer
static app_timer_t timer_data = { {0} };m_timer_id = &timer_data;err_code = app_timer_create(&m_timer_id, APP_TIMER_MODE_REPEATED, cbk_measure);APP_ERROR_CHECK(err_code);
-> this works well
ret_code_t err_code;
err_code = app_timer_start(m_timer_id, APP_TIMER_TICKS(m_probing_interval_ms), (void *) this);
NRF_LOG_DEBUG("FIXME: app_timer_start returns %d", err_code);
// APP_ERROR_CHECK(err_code);
-> but the start returns error code 8 (invalid param if i remember correctly) and I dont understand why. I tried APP_TIMER_DEF, but my timer_ids are C++ class members. I cannot simply use the APP_TIMER_DEF macro because I dont know if it ok if already declared. but it was already the case ion SDK12 and worked AFAIK
thx,
yacine