Skip to content

Jira 836, Enumerate non connectable Peripherals in Central scan #459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions libraries/CurieBLE/src/BLEDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,17 @@ void BLEDevice::setManufacturerData(const unsigned char manufacturerData[],
BLEDeviceManager::instance()->setManufacturerData(manufacturerData, manufacturerDataLength);
}

bool BLEDevice::getManufacturerData (unsigned char* manu_data,
unsigned char& manu_data_len) const
{
return BLEDeviceManager::instance()->getManufacturerData(this, manu_data, manu_data_len);
}

bool BLEDevice::hasManufacturerData() const
{
return BLEDeviceManager::instance()->hasManufacturerData(this);
}

void BLEDevice::setLocalName(const char *localName)
{
BLEDeviceManager::instance()->setLocalName(localName);
Expand Down
5 changes: 5 additions & 0 deletions libraries/CurieBLE/src/BLEDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ class BLEDevice
void setManufacturerData(const unsigned char manufacturerData[],
unsigned char manufacturerDataLength);

bool getManufacturerData (unsigned char* manu_data,
unsigned char& manu_data_len) const;

bool hasManufacturerData() const;

/**
* Set the local name that the BLE Peripheral Device advertises
*
Expand Down
Loading