I'm working on a cli_uart application on a PCA10040 board using SDK 17.0.0. I started out by using the SDK peripheral example for twi_master with twis_slave as a base for the work. Then I wanted to add a one second timer using app_timer to periodically sample connected twi sensors. I was able to create the timer and the handler and build the project. However, it appears the timer handler is called repetitively without any delay at all. The number I put in the time define statement for APP_TIMER_TICKS has no effect. ?????
For now, this is a peripheral only application (no SoftDevice or BLE).
Can somebody suggest how to get around this and set up a timer to launch my sensor readings?
Thanks,
Max