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

s130 dual role example - event handling

Hello,

I'm developing device application where I need:

  • peripheral (advertising also when in connection)
  • central role
  • whitelisted connections
  • maybe some encryption

I started developing on PCA10028 board and as a based of a project I took the example described as "BLE Dual role application" (experimental_ble_app_s130_example_c_s130, sdk 8.1.1). While reading the code I see that there is no "standard" softdevice system nor ble event handling with handlers such as: softdevice_sys_evt_handler_set or softdevice_ble_evt_handler_set. Instead, every event is being handled in event_handle(..) function in main.

Questions:

  1. is this reliable solution for central and peripheral event hadling? Or it is just for experimental version until next s130 version?

  2. Why "standard" handlers were not used?

  3. Am I able to implement all of the features with s130 dual role that I described at the top of the message?

Cheers

Related