SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
This option allows the configuration of the timing parameters for all services' advertisements. The API includes a unique structure for this specific configuration, with the following parameters:
For example, if period is set to T, repetitions are set to P, increasing interval factor is K = 2, the transmission shall be: advertise P times, wait T, advertise P times, wait 2×T, advertise P times, wait 4×T... (until max time reached / configuration changed /query issued).
Example:
_i16 Status;
SlNetAppServiceAdvertiseTimingParameters_t Timing;
Timing.t = 200; /* 2 seconds */
Timing.p = 2; /* 2 repetitions */
Timing.k = 2; /* Telescopic factor 2 */
Timing.RetransInterval = 0;
Timing.Maxinterval = 0xFFFFFFFF;
Timing.max_time = 5;
Status = sl_NetAppSet(SL_NETAPP_MDNS_ID, SL_NETAPP_MDNS_TIMING_PARAMS_OPT,sizeof(Timing),&Timing);
if( Status )
{
/* Error */
}