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

Ho to add custom uuid in ble_app_uart example

Dear sir,

I wants to customized UUID in ble_app_uart example pls. suggest procedure 

  • I have added the ble_app_template file into ble_app_uart example but code is not compile below error is coming

    Building ‘ble_app_uart_pca10040_s132’ from solution ‘ble_app_uart_pca10040_s132’ in configuration ‘Release’
    1> Compiling ‘peer_data_storage.c’
    2> Compiling ‘id_manager.c’
    3> Compiling ‘peer_database.c’
    4> Compiling ‘pm_buffer.c’
    1> D:\NORDIC\Nordic\sdk\nRF5_SDK_15.0.0_a53641a\components\ble\peer_manager\peer_data_storage.c:204:25: error: 'FDS_SUCCESS' undeclared (first use in this function)
    1> D:\NORDIC\Nordic\sdk\nRF5_SDK_15.0.0_a53641a\components\ble\peer_manager\peer_data_storage.c:204:25: note: each undeclared identifier is reported only once for each function it appears in
    1> D:\NORDIC\Nordic\sdk\nRF5_SDK_15.0.0_a53641a\components\ble\peer_manager\peer_data_storage.c:230:16: error: 'FDS_SUCCESS' undeclared (first use in this function)
    1> D:\NORDIC\Nordic\sdk\nRF5_SDK_15.0.0_a53641a\components\ble\peer_manager\peer_data_storage.c:249:71: error: 'FDS_SUCCESS' undeclared (first use in this function)
    1> D:\NORDIC\Nordic\sdk\nRF5_SDK_15.0.0_a53641a\components\ble\peer_manager\peer_data_storage.c:286:42: error: 'FDS_SUCCESS' undeclared (first use in this function)
    1> D:\NORDIC\Nordic\sdk\nRF5_SDK_15.0.0_a53641a\components\ble\peer_manager\peer_data_storage.c:496:14: error: 'FDS_SUCCESS' undeclared (first use in this function)
    1> D:\NORDIC\Nordic\sdk\nRF5_SDK_15.0.0_a53641a\components\ble\peer_manager\peer_data_storage.c:520:16: error: 'FDS_SUCCESS' undeclared (first use in this function)
    1> D:\NORDIC\Nordic\sdk\nRF5_SDK_15.0.0_a53641a\components\ble\peer_manager\peer_data_storage.c:579:14: error: 'FDS_SUCCESS' undeclared (first use in this function)
    1> D:\NORDIC\Nordic\sdk\nRF5_SDK_15.0.0_a53641a\components\ble\peer_manager\peer_data_storage.c:621:14: error: 'FDS_SUCCESS' undeclared (first use in this function)
    Build failed

  • Hi

    Please check out the Custom Service tutorial here. This is an update to one of our official Custom service projects on our GitHub that teaches you how to create a custom service with a custom value characteristic, UUID, etc. 

    For the compiling errors you're seeing, it sems like you haven't added the file where FDS_SUCCESS is first declared to your project. This should be the fds.h header file. Seeing as you've added the pm_buffer.c file you also need to add the files and header files that is included by this file.

    Best regards,

    Simon

Related