Hi All,
In short, I set the advertising interval 50ms for 30 seconds when peripheral is powered on. After 30 seconds I change the advertising interval to 1 second.
I scheduled a Timer to change the advertising interval, used the following codes:
GAP_SetParamValue( TGAP_LIM_DISC_ADV_INT_MIN, advInt ); GAP_SetParamValue( TGAP_LIM_DISC_ADV_INT_MAX, advInt ); GAP_SetParamValue( TGAP_GEN_DISC_ADV_INT_MIN, advInt ); GAP_SetParamValue( TGAP_GEN_DISC_ADV_INT_MAX, advInt );
But the interval did not change.(I used Sniffer to monitor the air data )
What did I forget?
Hi,
I have fitted the problem by refering the HeartRate project in BLE stack 1.2.
But there is a question I am puzzled: Can't we change the adv interval when the peripheral is in advertising state?