Bluetooth: Extend advertising API
Extend bt_start_advertising to make it possible to add any data type instead of just the name. Change-Id: I3f2afe1eb64aec51f321f7fd7439e97b3d67374c Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
77db73142a
commit
b3cdfed003
3 changed files with 54 additions and 18 deletions
|
@ -77,7 +77,15 @@ 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);
|
||||
/* Advertising API */
|
||||
|
||||
struct bt_eir {
|
||||
uint8_t len;
|
||||
uint8_t type;
|
||||
uint8_t data[29];
|
||||
} PACK_STRUCT;
|
||||
|
||||
int bt_start_advertising(uint8_t type, const struct bt_eir *ad,
|
||||
const struct bt_eir *sd);
|
||||
|
||||
#endif /* __BT_BLUETOOTH_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue