I'm developing an app for nRF Connect Desktop based on the nRF Connect Desktop BLE App.
I would like to find a characteristic item based on an UUID. Where is the list of characteristics stored? I cannot find the redux state and store in the source code.
By this, do you mean that you would like to create a desktop application to interface with your phone directly?If so, you are probably looking for the pc-ble-driver, and the Android-BLE-library.If you instead were asking how you could create your own characteristic and service, I highly recommend completing the BLE service and BLE characteristic tutorials to familiarize yourself with the subject.There is no way / API for you to use to create an app for the nRF Connect Desktop program directly.Please let me know if this did not answer your question, or if you have encountered any other issues.Best regards,Karl
Thank you for your reply.
Sorry for being confusing. I'm afraid you are misunderstanding my question.
1. I'm modifying the BLE App inside nRF Connect Desktop, based on the source code here on Github: https://github.com/NordicSemiconductor/pc-nrfconnect-ble
2. I'm modifying the app so I can use a nRF52 device, plug into my Windows PC, to communicate with a certain nRF52 based peripheral.
3. This peripheral is setup in a way that it will receive configuration bytes through a certain BLE Characteristic to configure itself based on the configuration byte.
4. Due to this requirement, I would like to modify the BLE App, so that the configuration bytes are sent automatically to the certain characteristic, just at a click of a button, instead of manually entering bytes to the characteristic and hit write.
To do this, as I stated before, I need to get access to the list of characteristics of the connected device stored in the app, so I can dispatch a redux action (the app is react-redux based) to write to the characteristic I want.
Thank you very much.
Hello,Unfortunately, we do not provide support for modification of the nRF Connect Desktop applications, but you are free to modify them how you would like.I would think that you could achieve the functionality you are describing by creating a server configuration for the existing nRF Connect Desktop BLE application - you might want to look into this for a less time-consuming way to achieve your desired functionality.You may also modify the ble_uart_central example to work in this exact way, and then have it accept input and write out data over the serial COM port.Best regards,Karl