This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

S130 Starting advertise during peripheral connection

I'm trying to start advertisement after establishing peripheral connection (on BLE_GAP_EVT_CONNECTED event) but called function sd_ble_gap_adv_start(...) returns NRF_ERROR_INVALID_STATE. But when I try to start advertisement after establishing central connection it works fine. Also when I start advertisement first then both (Peripheral/central) connections wok fine too. I use S130 SD, PCA10001 board and SDK 6.1.0. So, does S130 multi-role supports starting advertisement after peripheral connection?

Parents
  • The current S130 is based on an earlier version of the S110 peripheral stack and it doesn't support advertising in connected mode. So if you already are connected as a peripheral, you will get the error that you see as you can only have one peripheral connection at the same time.

    In theory you would be able to do non-connectable advertising while in a peripheral state, but this functionality is not present in the current S130 version. You can still advertise when you have a central connection as this wouldn't affect the peripheral role.

  • Looks like this issue is fixed in new (0.9) version of S130.

Reply Children
No Data
Related