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

In the Ble peripheral/blinky example if i add another led , i am not getting the UI for the predefined led3 option instead i must enter the value 00 or 01.How must i get the ui?

Does the ui depend on the app design(nrf connect app) or on writing data in the characteristics. For the predifined i am getting a switch but for the one i added i have to type 00 or 01.i have attached image for reference image description image description How do i get the UI used for default led. And how do i get the UI on the nrf cloud?On the cloud i can only see the uuid

Parents
  • Hi,

    Yes, it depends on how nRF Connect interprets UUIDs. I assume you mean this GUI:

    gui

    The nRF Connect app is hardcoded to interpret the UUID 0x1523 as the LED button service. The same way it is hardcoded to interpret 0x1524 as the button characteristic and 0x1525 as LED characteristic.

    If you add another characteristic with UUID 0x1527, nRF Connect doesn't know that you want to make a button characteristic. Hence, it shows you the generic dialog box allowing you to type in values or strings.

  • Yes that is hard coded too. You can't make up a characteristic with a custom UUID and expect other software to recognize it as a LED characteristic.

    There is a public API for the nRF Connect for Android here.

    There is also a dedicated app for the LED/Button service with source code available here.

Reply Children
No Data
Related