NimBLE Questions - Issues
Posted: Wed Jan 25, 2023 7:44 pm
I have a product that we are porting over from NRF52 to ESP32-S3.
I am using platformio with ESP-IDF version 5.0.
Most of the development has gone smoothly.
I have 2 hurdles that seem to be stopping me currently.
#1 - On NRF52, i could programmatically via code - allow and reject pairing on my product and the phone trying to connect to it. My device has a single button that when pressed allows pairing / bonding for a 30 second window. If a phone tries to bond any time except after the button has been pressed and the 30 seconds after that, pairing / bonding is rejected. If the button is pressed, and the phone tries to pair within 30 seconds, pairing / bonding is allowed. Is there a way to do this on ESP IDF using NimBLE host?
#2 Our device sends out notifications to bonded phones (peers) (up to 3 concurrent connected phones). I currently am able to send notifications to my connected phones but it also sends the notifications to phones that are not bonded / paired. Is there a way to only send notifications to bonded devices?
Any help in the right direction would be appreciated!
I am using platformio with ESP-IDF version 5.0.
Most of the development has gone smoothly.
I have 2 hurdles that seem to be stopping me currently.
#1 - On NRF52, i could programmatically via code - allow and reject pairing on my product and the phone trying to connect to it. My device has a single button that when pressed allows pairing / bonding for a 30 second window. If a phone tries to bond any time except after the button has been pressed and the 30 seconds after that, pairing / bonding is rejected. If the button is pressed, and the phone tries to pair within 30 seconds, pairing / bonding is allowed. Is there a way to do this on ESP IDF using NimBLE host?
#2 Our device sends out notifications to bonded phones (peers) (up to 3 concurrent connected phones). I currently am able to send notifications to my connected phones but it also sends the notifications to phones that are not bonded / paired. Is there a way to only send notifications to bonded devices?
Any help in the right direction would be appreciated!