Skip to content

How can I prevent automatic advertising after disconnection? #372

Answered by h2zero
sivar2311 asked this question in Q&A
Discussion options

You must be logged in to vote

The function you're looking for is here:
https://h2zero.github.io/NimBLE-Arduino/class_nim_b_l_e_server.html#a6bfd923ecd0ea06d5564343ab7209122

I also noticed that after a device was connected and I start advertising manufacturer data (see #371) - which is sent out for 1 second (pBleAdvertisement->start(1)), the duration is completely ignored. The advertisement runs forever.

Strange, I'll check it out.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sivar2311
Comment options

Answer selected by sivar2311
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants