I'm starting on a SensorTag application which at times needs to be a BLE Central device. The Peripheral and Central roles will alternate; i.e. at any one time the sensorTag will be either a Central or Peripheral device. Api documentation, wiki sample code and threads on this forum raise some questions.
1. Has anyone been successful repeatedly switching between Central and Peripheral roles?
2. The wiki example (http://processors.wiki.ti.com/index.php/MasterSlaveSwitch ) appears to be calling GAPCentralRole_StartDevice and GAPRole_StartDevice multiple times, but the API documentation says these api's should be called once only.
3. My approach would be to switch between roles only when roles are idle: Peripheral not connected nor advertising, Central not connected, not connecting and not discovering. In such a case, is it still necessary to call the <xxx>_StartDevice api's to effect a switch?
TIA for any insights.
- Richard