The advertisement data is not stored by the framework. It can be obtained only by scanning, but you have a couple of options:
- If the peripheral is still advertising, then start scanning and capture the advertisement data. (Mind duplicate filtering if you did not stop scanning before connecting.)
- Capture the advertisement data keyed by the CBPeripheral object and reuse it when connected.