Hello,
I'm working on an nRF52832 with SoftDevice v6.1.0 and SDK 15.3.0. We have made a custom application that was created from the ble_app_uart example project. We've also added the buttonless DFU (with bonding) capability to the project. I'm hoping to get some guidance on tweaking our device's behavior a little further.
We would like the device to continue advertising the buttonless DFU service to any clients that are looking for BLE devices to connect to, but we don't want the DFU service to do anything until the client connected to our device has completed our own authentication process. I was wondering what the best way would be to make our device do nothing, but stay connected, if a connected client tries to write to the DFU service. If that is possible, is there an optimal location to do this? We're thinking that it might result in some slight changes to some SDK files. Any guidance would be appreciated.
Right now our plan is to use a global flag to track whether the connected client is authenticated, and to check that flag before proceeding if the client tries to initiate a DFU.
Thank you!
Anders