Unverified Commit a4390280 authored by Dominic Pearman's avatar Dominic Pearman Committed by GitHub

BTstack: added function to set scan respone data. (#2134)

Co-authored-by: default avatarDominic Pearman <dominic@phymorous.de>
parent a49bcd4a
...@@ -889,6 +889,9 @@ uint16_t BTstackManager::addGATTCharacteristicDynamic(UUID * uuid, uint16_t flag ...@@ -889,6 +889,9 @@ uint16_t BTstackManager::addGATTCharacteristicDynamic(UUID * uuid, uint16_t flag
void BTstackManager::setAdvData(uint16_t adv_data_len, const uint8_t * adv_data) { void BTstackManager::setAdvData(uint16_t adv_data_len, const uint8_t * adv_data) {
gap_advertisements_set_data(adv_data_len, (uint8_t*) adv_data); gap_advertisements_set_data(adv_data_len, (uint8_t*) adv_data);
} }
void BTstackManager::setScanData(uint16_t scan_data_len, const uint8_t * scan_data) {
gap_scan_response_set_data(scan_data_len, (uint8_t*) scan_data);
}
void BTstackManager::startAdvertising() { void BTstackManager::startAdvertising() {
gap_advertisements_enable(1); gap_advertisements_enable(1);
} }
......
...@@ -143,6 +143,7 @@ extern "C" { ...@@ -143,6 +143,7 @@ extern "C" {
void enableDebugLogger(); void enableDebugLogger();
void setAdvData(uint16_t size, const uint8_t * data); void setAdvData(uint16_t size, const uint8_t * data);
void setScanData(uint16_t size, const uint8_t * data);
void iBeaconConfigure(UUID * uuid, uint16_t major_id, uint16_t minor_id, uint8_t measured_power = 0xc6); void iBeaconConfigure(UUID * uuid, uint16_t major_id, uint16_t minor_id, uint8_t measured_power = 0xc6);
void startAdvertising(); void startAdvertising();
void stopAdvertising(); void stopAdvertising();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment