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

APP_ADV_INTERVAL and APP_ADV_DURATION

Hi, 

I'm trying to look for a definition for the APP_ADV_DURATION and APP_ADV_INTERVAL. 


#define APP_ADV_INTERVAL                300                                    /**< The advertising interval (in units of 0.625 ms. This value corresponds to 187.5 ms). 
#define APP_ADV_DURATION                18000                                  /**< The advertising duration (180 seconds) in units of 10 milliseconds. 

How does we know the value we set is in units of 0.625ms or 10ms ?

Can anyone teach me? or guide me any module shall I look into?

Parents
  • Hi

    In our SDK the comments always tell what units you are working with, so I don't see what exactly you want to be taught.

    Best regards,

    Simon

  • Hi Simon, thanks for the reply. I do know the comment // written. To program own time, I do not know which specific word linked to the unit of 10ms or unit of 0.625ms..

    for example , i need a duration of 30s with interval 625ms . how do i know the compiler build the 30s and 625ms accordingly since the comment didn't show up if i #define a macro myself. Or I have 5 timing for advertising. All of them are not the same timing, how to I know which to which. 

    #define mytime1  30000

    #define mytime2  50000

    #define mytime3   10000

    #define mytime4   25000

    #define mytime5   32000

    I hope you get my idea. Thank you .

Reply
  • Hi Simon, thanks for the reply. I do know the comment // written. To program own time, I do not know which specific word linked to the unit of 10ms or unit of 0.625ms..

    for example , i need a duration of 30s with interval 625ms . how do i know the compiler build the 30s and 625ms accordingly since the comment didn't show up if i #define a macro myself. Or I have 5 timing for advertising. All of them are not the same timing, how to I know which to which. 

    #define mytime1  30000

    #define mytime2  50000

    #define mytime3   10000

    #define mytime4   25000

    #define mytime5   32000

    I hope you get my idea. Thank you .

Children
No Data
Related