Bluetooth: Add simple advertising enabling API

This patch adds a simple API for enabling advertising and specifying
the friendly name in the advertising data. The API is probably not a
final one but fulfills the initial need to create apps that are able
to act in the LE peripheral role.

Change-Id: I3ff7e72ece377d872ef1b0e4ad44aeb293cc13e5
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2015-04-17 13:59:34 +03:00 committed by Anas Nashif
commit a6fbfe4bc1
2 changed files with 75 additions and 0 deletions

View file

@ -131,4 +131,7 @@ int bt_driver_register(struct bt_driver *drv);
/* Unregister a previously registered HCI driver */
void bt_driver_unregister(struct bt_driver *drv);
/* Advertising testing API */
int bt_start_advertising(uint8_t type, const char *name, uint8_t name_len);
#endif /* __BT_BLUETOOTH_H */