This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Getting certain Characteristic by UUID

Hello,

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.

Thank you.

Parents Reply Children
  • Hello,

    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

Related