This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Why is my service cccd_handle number wrong

Hello.

Nordic Team.

I add for ble Service and i select my service notify enable

I want receive my service number, but service number is different.

Add for my source code and I looking for example PCA10040 HRS service.

The development environment is as follows :

   OS : Windows 7 Pro 64bit
   IDE : Keil uVision V5.24.1
   Python : 2.7
   SDK Version : nRF5_SDK_14.0.0
   DK : PCA10040 2EA

image description

image description

Thanks you

Bestregards,

kevin.ko

2017-12-01 add for Image

image description

Parents
  • My self solved... it's problem

    example : ble_hrs.h

    #define BLE_HRS_DEF(_name)                                                                          \
    static ble_hrs_t _name;                                                                             \
    NRF_SDH_BLE_OBSERVER(_name ## _obs,                                                                 \
                         BLE_HRS_BLE_OBSERVER_PRIO,                                                     \
                         ble_hrs_on_ble_evt, &_name)
    

    Your ble service header source

    source add for #define, static, Observer..

Reply
  • My self solved... it's problem

    example : ble_hrs.h

    #define BLE_HRS_DEF(_name)                                                                          \
    static ble_hrs_t _name;                                                                             \
    NRF_SDH_BLE_OBSERVER(_name ## _obs,                                                                 \
                         BLE_HRS_BLE_OBSERVER_PRIO,                                                     \
                         ble_hrs_on_ble_evt, &_name)
    

    Your ble service header source

    source add for #define, static, Observer..

Children
No Data
Related