This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Questions about GGS

Dear All;

If there is any document about GAP GATT Server Parameters and  GAP GATT Server Functions?I just saw the definition of GAP GATT Server Parameters and use of GAP GATT Server Functions in the programm.I want to find the illustration to better understanding.

Best Regards!

 

  • Hi!

    You have docs in your BLE stack installation :)

    C:\Texas Instruments\BLE-CC254x-1.2.1\Documents\GATTServApphtml\index.html

    This is where mine are :)

    Ciao!

  • Hi Kazola,

    Thank you very much!But that is not my question.I want to know the parameters and functions in <gapgattserver.h>. Here below I list them.

    // GAP GATT Server Parameters
    #define GGS_DEVICE_NAME_ATT                     0   // RW  uint8[GAP_DEVICE_NAME_LEN]
    #define GGS_APPEARANCE_ATT                      1   // RW  uint16
    #define GGS_PERI_PRIVACY_FLAG_ATT               2   // RW  uint8
    #define GGS_RECONNCT_ADDR_ATT                   3   // RW  uint8[B_ADDR_LEN]
    #define GGS_PERI_CONN_PARAM_ATT                 4   // RW  sizeof(gapPeriConnectParams_t)
    #define GGS_PERI_PRIVACY_FLAG_PROPS             5   // RW  uint8
    #define GGS_W_PERMIT_DEVICE_NAME_ATT            6   // W   uint8

    GGS_SetParameter( uint8 param, uint8 len, void *value );

    GGS_GetParameter( uint8 param, void *value );

    GGS_AddService( uint32 services );

  • :) As part of the core of the TI BLE stack, these are closed source. At most you can see in gatgappserver.h:

    /**
    * @brief Set a GAP GATT Server parameter.
    *
    * @param param - Profile parameter ID<BR>
    * @param len - length of data to right
    * @param value - pointer to data to write. This is dependent on
    * the parameter ID and WILL be cast to the appropriate
    * data type (example: data type of uint16 will be cast to
    * uint16 pointer).<BR>
    *
    * @return bStatus_t
    */
    extern bStatus_t GGS_SetParameter( uint8 param, uint8 len, void *value );

    Good luck!

  • Hi Kazola,


    May i know what is the definition of "GGS_PERI_PRIVACY_FLAG_PROPS" & "GGS_W_PERMIT_DEVICE_NAME_ATT"?

    I can't find that their functionality on the BLE protocol stack.


    Many thanks first.

    BR.

    Peter.