You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/08/07 04:16:34 UTC

[GitHub] [mynewt-nimble] dhrishi commented on issue #211: host: Unconditionally disable adv on controller

dhrishi commented on issue #211: host: Unconditionally disable adv on controller
URL: https://github.com/apache/mynewt-nimble/pull/211#issuecomment-518932789
 
 
   @ccollins476ad I am running a scenario and came across an issue that took me here. I am only using NimBLE host and not NimBLE controller. DUT is in BLE peripheral role.
   
   Once the peer gets connected, if I call `ble_gap_adv_stop()` it returns `BLE_ERR_CMD_DISALLOWED` and not `BLE_HS_EALREADY` as we do not abort early (it being already stopped) and send the command to the controller.
   
   So, I have a couple of questions:
   1. Can we assume that once the connection is complete, the advertisement should stop in all the cases. I mean, is there anything related to this in the spec? If so, I can directly remove stop adv call when connection is complete.
   
   2. Are you aware if NimBLE controller also return the same error code in such a scenario?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services