diff options
author | Sven Gothel <[email protected]> | 2020-02-16 20:25:03 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-02-16 20:25:03 +0100 |
commit | b7dafceb20fc694487aa3af84fae49def64ac6db (patch) | |
tree | 130241a66170cff675e1f8ac94a84b5b2caa1cf7 /examples | |
parent | 266cbdbfe1e101c2bb05724db1e2a891d678f4f5 (diff) |
Encapsulate EInfoReport handling + ensure memory bounds are checked.
EInfoReport now handles reading of the AD/EIR data segments as well as the whole AD reports.
This allows short implementation lines of HCIAdapter::discoverDevices(..)
and also allows easier review and adding memory bounds checks of read data w/ data structures
before reading them.
+++
Add full C++ type EUI48 (DataTypes.hpp)
handling all operation and replacing the foreign type bdaddr_t.
Removing dependency to BlueZ header within our API header.
+++
File restucturing:
- EInfoReport moved to DataTypes.hpp
- HCITypes.cpp -> HCIAdapter.cpp + HCIDevice.cpp + DataTypes.cpp
- HCIDiscovery.cpp -> DataTypes.cpp
Diffstat (limited to 'examples')
-rw-r--r-- | examples/HCIScanner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/HCIScanner.cpp b/examples/HCIScanner.cpp index 48ab53dd..42b39522 100644 --- a/examples/HCIScanner.cpp +++ b/examples/HCIScanner.cpp @@ -52,7 +52,7 @@ int main(int argc, char *argv[]) exit(1); } fprintf(stderr, "Adapter: device %s, address %s\n", - adapter.getName().c_str(), adapter.getAddress().c_str()); + adapter.getName().c_str(), adapter.getAddressString().c_str()); adapter.setDeviceDiscoveryListener(std::shared_ptr<tinyb_hci::HCIDeviceDiscoveryListener>(new DeviceDiscoveryListener())); |