Hello All,
SDK version: 15.1.0 (nRF5SDK1510a8c0c4d)
We are having BLE nRf52840 connected with processor over UART. As of now nRf52840 is running modified ble_app_uart_c example and we are able to get the beacon data as well as able to connect to various BLE based sensor to read characteristics data in below fashion:
1> Beacon based data:
We have modified SDK's API nrf_ble_scan_on_ble_evt() by adding parsing logic of various sensor which send data over beacon and we are then sending it to processor over uart.
2> Connection based data:
We are using Name/MAC based filter to connect to BLE temperature sensor and get hold on connection handles by parsing its services/characteristics so that we can Read/Write from/to BLE temperature sensor and eventually send data to processor over uart.
our nRf52840 is getting installed with merged .hex file of DFU+SOFT_DEVICE+APP_uart_c in factory and on field we only updates BLE applications with the help of nrfutil.
Now, We have installed BLE pressure sensor on field which is only allowing characteristic/data read if it is paired (with key:123456) and we got to know that NUS's ble_app_uart_c doesn't support pairing.
So, I am welcoming all suggestions for:
1> What is the best way to handle this? since we have did changes in files ble_nus_c.c, nrf_ble_scan.c, ble_db_discovery.c in SDK codes along with ble_app_uart_c.c
2> Is there any other example which supports both pairing and UART?
3> Is there any reference available for merging pairing based example with NUS's app_uart_c? basically we want our BLE to connect with normal sensor as well as pairing based sensors and send received data from sensor to processor over UART
4> Will the new application with pairing support needs reflash DFU or SOFT_DEVICE? or application/example.hex should be enough?
Thanks in Advance,
Ankit