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

What is the point of app_scheduler.h in the ble eddystone example?

The ble_app_eddystone example that comes with the SDK uses the scheduler, but I have failed to see where any handlers are registered to the scheduler (and grep-ing the eddystone library itself shows it uses the scheduler only in the flash-memory related logic).

I feel silly asking, but where in main.c is the scheduler told to do anything related to ble? What needs to be changed so that the eddystone example can run without the scheduler library?

Parents
  • The scheduler is used (as you state) for performing the garbage collection. The app_timer library also uses the scheduler (see the APP_TIMER_CONFIG_USE_SCHEDULER config). No BLE activity is directly controlled by the scheduler.

    If you want to remove the scheduler dependency, implement some check in main-context whether or not garbage collection should be done, and change the config of app_timer to not use the scheduler.

Reply
  • The scheduler is used (as you state) for performing the garbage collection. The app_timer library also uses the scheduler (see the APP_TIMER_CONFIG_USE_SCHEDULER config). No BLE activity is directly controlled by the scheduler.

    If you want to remove the scheduler dependency, implement some check in main-context whether or not garbage collection should be done, and change the config of app_timer to not use the scheduler.

Children
No Data
Related