3 Replies Latest reply on Sep 21, 2018 2:57 AM by ShipingW_81

    BLE index for cy_ble_customCServ

    JeHu_3414236

      I have one custom service defined in my GATT client.  PSoC creator defines this value:

      #define CY_BLE_CUSTOMC_CUSTOM_SERVICE_SERVICE_INDEX   (0x01u) /* Index of Custom Service service in the cy_ble_customCServ array */

       

      The cy_ble_customCServ array is defined as:

      cy_stc_ble_customc_t cy_ble_customCServ[CY_BLE_CUSTOMC_SERVICE_COUNT]

      and CY_BLE_CUSTOMC_SERVICE_COUNT = 1

       

      How am I supposed to use CY_BLE_CUSTOMC_CUSTOM_SERVICE_SERVICE_INDEX?  It would be cy_ble_customCServ[1] when the size is only 1.  Should CY_BLE_CUSTOMC_CUSTOM_SERVICE_SERVICE_INDEX be defined as 0?