Create and start advertising for an ACL connection.
- Parameters
-
[in] | ext_adv_index | Index of the advertising set to start. |
[in] | ext_adv | The data to be put in the extended advertisement. |
[in] | ext_adv_size | Size of ext_adv . |
[in] | per_adv | The data for the periodic advertisement; can be NULL. |
[in] | per_adv_size | Size of per_adv . |
[in] | connectable | Specify if advertisement should be connectable or not. |
- Note
- To restart advertising, call this function with all 0s and NULL, except for connectable. The same advertising parameters as when bt_mgmt_adv_start was last called will then be used.
- Returns
- 0 if success, error otherwise.