I just downloaded "BLE-CC254x-1.3.2" and started working on the BLE SensorTag example project with BLE Sensor Tag hardware.
What I want is to let the Sensor Tag to advertise for 2 second every 1 minute. The iPhone will listen to the advertisement all the time. I modified the following:
- GAPROLE_ADVERT_OFF_TIME = 60000; //set the advertising off time to 60 seconds
- GAP_SetParamValue(TGAP_LIM_ADV_TIMEOUT, 2); //set advertising time to 2 seconds
- #define DEFAULT_ADVERTISING_INTERVAL 240 //set advertising interval to 200ms
The problem comes with GAPROLE_ADVERT_OFF_TIME. When it is set to 40000, it worked and the tag was advertising every 40 seconds. But it does not work when I increase the value to 60000.
Is there any limit on the setting? And I found that the iPhone may not detect the Tag's advertisements every time with this setting (200ms interval and last for 2 seconds). Is there any recommended setting?