aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* DBTScanner10/dbt_scanner10: Use better block formatting, don't hide block {}Sven Gothel2021-01-302-2/+4
|
* API doc: Use '{@code tinyb.dbus}' to add implementation notesSven Gothel2021-01-302-38/+38
|
* BTDevice.cpp connect*() methods are all noexcept, since all invoked methods ↵Sven Gothel2021-01-304-8/+9
| | | | are noexcept; Earmark in BTDevice.java for direct_bt.
* API doc fix: 'direct_bt.tinyb' -> 'jau.direct_bt'Sven Gothel2021-01-292-5/+5
|
* BTAdapter.startDiscovery(boolean): Added implementation remark re ↵Sven Gothel2021-01-291-0/+5
| | | | removeDiscoveredDevices() for direct_bt
* BTManager.Settings Name FixSven Gothel2021-01-294-8/+8
| | | | | | BTManager.Settings: - rename: isCharacteristicValueCacheNotificationSupported() -> isCharValueCacheNotificationSupported() - property now: 'jau.direct_bt.characteristic.compat'
* Bump jaulib 8ca0eaedc84cb289601c95854a853ac8f5635113v2.2.1Sven Gothel2021-01-291-0/+0
|
* add script/*.sh for native testsSven Gothel2021-01-294-0/+77
|
* Fix EUI48Sub::toString() if 0 == length: reserve() would become negative ↵Sven Gothel2021-01-292-11/+20
| | | | (C++); Add same path to Java StringBuilder capacity
* Bump jaulib e3565006727776b1a4eda22aed4cbe418793a1d2Sven Gothel2021-01-291-0/+0
|
* locale: Add LC_ALL and hint to set system (testing requires proper unified ↵Sven Gothel2021-01-299-18/+36
| | | | setup)
* Revert to gcc as default since clang < 10 has issues on 32bit arm (raspi3 setup)Sven Gothel2021-01-282-1/+1
|
* cmake/build/test: Ensure UTF8 is used by system, set LANG to 'en_US.UTF-8' ↵Sven Gothel2021-01-284-0/+12
| | | | to have a unified environment
* DBTDevice.cxx: Adopt implementation names and DEBUG output to renaming schemeSven Gothel2021-01-281-18/+18
|
* Fix missed JNI renaming: ↵Sven Gothel2021-01-281-1/+1
| | | | Java_jau_direct_1bt_DBTDevice_removeAllAssociated[Characteristic -> Char]Listener
* Fix missed JNI renaming: ↵Sven Gothel2021-01-283-1/+3
| | | | | | Java_jau_direct_1bt_DBTDevice_removeAll[Characteristic -> Char]Listener(..) Adding call to example, ensuring manual test coverage.
* dbt_scanner10.cpp: Drop 'constexpr' from isResponder() in My LTK/CSRK Info ↵Sven Gothel2021-01-281-2/+2
| | | | structs (oops, had to move the LTK/CSRK called impl to cpp file)
* Enhance Scanner10's MyLongTermKeyInfo (C++/Java): Store BTSecurityLevel and ↵Sven Gothel2021-01-284-190/+311
| | | | | | | | | SMPIOCapability setting to be self-contained un reusage. Also - store keys in own path - determine filename within class - validate BTSecurityLevel as well
* SMPLongTermKeyInfo (Java/C++): Add convenience isResolver() (from ltk prop) ↵Sven Gothel2021-01-286-10/+28
| | | | and use it, same for SMPSignatureResolvingKeyInfo.
* Example Scanner10 (C++/Java): Support Security setting per device ↵Sven Gothel2021-01-274-40/+192
| | | | | | BDAddressAndType; Tested reconnect reusing stored LTK Same code in C++ dbt_scanner10.cpp and DBTScanner10.java.
* API renaming of missed 'Characteristic', add listener to API name tableSven Gothel2021-01-2711-35/+43
|
* Refine the API doc overview: Add Header and update linked names + add event ↵Sven Gothel2021-01-275-23/+61
| | | | driven adapter workflow
* cmake/modules/ExtractArchiveList.cmake: Use native unzip if cmake < 3.18.0Sven Gothel2021-01-273-2/+13
|
* Update README.md; Provide Java package API doc (Copied from C++) etc ..Sven Gothel2021-01-279-28/+146
|
* Bump jaulib c1e4cc9b7b020c482f085fe1647dea292ed49171Sven Gothel2021-01-271-0/+0
|
* Have BTFactory.main(..) show version info and available adapter, also ↵Sven Gothel2021-01-2715-69/+120
| | | | | | whether jaulib is used or not; BTFactory: Shorten names (API) direct_bt.jar: Don't use jaulib.jar in its Class-Path (manifest)
* DirectBTVersion: Use data transient onlySven Gothel2021-01-271-18/+18
|
* Bump jaulib df624074383d6e3dfd9ae2060beb8fce9ad73064Sven Gothel2021-01-261-0/+0
|
* Adapt to jaulib changes: Jar naming convention (dash, not underscore for ↵Sven Gothel2021-01-2614-43/+205
| | | | | | | extras) ..; direct-bt-fat* includes jaulib-fat (standalone) direct-bt-fat.jar is with Tinyb direct-bt-fat2.jar is ex Tinyb (merely testing size and encapsulation)
* scripts/run-java-scanner10.sh: Remove jni debugging, oopsSven Gothel2021-01-261-2/+2
|
* Added EUI48Sub and EUI48::indexOf(const EUI48Sub& other) and contains(const ↵v2.2.0Sven Gothel2021-01-255-4/+391
| | | | EUI48Sub& other) (C++ and Java, both w/ unit tests)
* eclipse .classpath adjustmentSven Gothel2021-01-251-1/+7
|
* Bump jaulib 3dd2fa5035720dfe612b94a8e560a1d4f89347b0 - v0.2.21Sven Gothel2021-01-251-0/+0
|
* Complete build change: Using jaulib[_fat] if available (for Java) incl. ↵Sven Gothel2021-01-2514-29/+332
| | | | native lib loading. Added junit test facility (Java).
* Bump jaulib to ee0aed19a2d308a422d486690e54734167fcdc4e v0.2.20Sven Gothel2021-01-251-0/+0
|
* Java: New API Layout: Shorten named [Bluetooth -> BT], [Characteristic -> ↵Sven Gothel2021-01-25106-2512/+2597
| | | | Char] etc (align naming with direct_bt == java; reduce java code footprint and too long code lines)
* eclipse: adjust path ..Sven Gothel2021-01-252-5/+9
|
* Use new jaulib/JaulibSetup.cmake (Unified Setup); RELEASE: Strip native libs ↵Sven Gothel2021-01-254-149/+43
| | | | and drop javac debug info (Current jaulib default)
* Bump jaulib 208a8ab9a604f68ce17c32263dda1897421240e8Sven Gothel2021-01-251-0/+0
|
* Java: New Layout: [tinyb2 -> direct_bt].jar ; org.[tinyb -> direct_bt] ..; ↵Sven Gothel2021-01-2582-466/+465
| | | | Upcoming API Cleanup (Drop TinyB only entries)
* Bump GetGitRevisionDescription.cmake to ↵Sven Gothel2021-01-2548-91/+250
| | | | 6a748896188fdf3f885820ccd686393ea5215dbf (from cmake-modules)
* smart_ptr-6: Create make_shared(..) vehicle w/ public ctor and private ↵Sven Gothel2021-01-195-12/+28
| | | | cookie for friends to benefit from single mem-allocation via std::make_shared<T>(..)
* DBTDevice: Avoid deadlock calling into processDeviceReady(..) within scope ↵Sven Gothel2021-01-181-4/+13
| | | | of locked mtx_pairing
* DBTScanner10: Use BDAddressAndType.matches() to support ↵Sven Gothel2021-01-181-4/+12
| | | | BDAddressType.BDADDR_UNDEFINED (like dbt_scanner10.cpp)
* *Adapter: Clarity [get|remove]Devices() -> [get|remove]DiscoveredDevices(); ↵Sven Gothel2021-01-1811-25/+118
| | | | | | | | Add removeDiscoveredDevice(); Use: Flush discovered devices after adding listener. Flushing discovered devices after adding listener to adapter. This helps avoiding skipping deviceFound callbacks of earlier found devices before adding the AdapterStatusListener when setting up the adapter.
* DBTAdapter.java: equal/hash key is dev_id + addressSven Gothel2021-01-181-4/+4
|
* DBTManager/DBTAdapter: DBTManager own zero or all DBTAdapterSven Gothel2021-01-1821-458/+367
| | | | | | | | | | | | | | | | | | | | | | | | DBTManager/DBTAdapter Relationship (C++) aligning to Java DBTManager owning DBTAdapter to harmonize and simplify API and DBTAdapter lifecycle in respect to the event-driven ChangedAdapterSetFunc() approach. API doc reflecting this change WIP. DBTManager: - Owns all DBTAdapter - processAdapterRemoved: Issue DBTAdapter::close() (align Java + C++ behavior) - ChangedAdapterSetFunc passes 'std::shared_ptr<DBTAdapter>&', instead of 'dev_id' (like Java) - Fix adding ChangedAdapterSetFunc: Only pass all known DBTAdapter through newly added callback, not all. - Aligned method names with Java - DBTAdapter: - No public ctor (DBTManager owns all); - Owns adapterInfo; - dtor unregisters instance in DBTManager; - dev_id is uint16_t; AdapterInfo: Support copy/move ctor and copy assignment
* Bump jaulib to commit 1ba932716f2d382af56bf8ea69a57666e2c835d6Sven Gothel2021-01-181-0/+0
|
* AdapterStatusListener::deviceFound: Resolve sharedDevices persistence of ↵Sven Gothel2021-01-1712-46/+93
| | | | | | | | | | found device via return value While we keep the device instance temporarily alive within discoveredDevices until next removeDiscoveredDevices() eg at startDiscover(), we only keep it within persistent sharedDevices list if at least one deviceFound implementation returns true. This allows user to minimize the sharedDevices footprint when rejecting the device w/o being required to call device.remove().
* DBTAdapter: USe pre-incr, use typedef device_list_t (shorten shared device ↵Sven Gothel2021-01-152-12/+13
| | | | darray)