Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | JNI on DBT*: Hold the JNIGlobalRef shared_ptr<JavaAnon> while inside JNI ↵ | Sven Gothel | 2022-05-04 | 4 | -14/+29 | |
| | | | | | | call, avoiding their destructions This is added for GATT retrieval functions only .. for now. | |||||
* | Add test using fat fat `Direct-BT Jaulib Fat Jar`: TestBringup00 [ loading ↵ | Sven Gothel | 2022-04-24 | 1 | -0/+83 | |
| | | | | | | | | | | native libs, show all adapter, no extra permissions ] Notable, the unit tests within the `test` package are using the fat jar files which include the native libraries. The unit tests within the `trial` package, e.g. `TestDBTClientServer00`, use the non-fat Direct-BT jar file only plus selected jaulib jar files for testing framework. In these trials, the native libraries are loaded 'natively', i.e. via given library path. | |||||
* | DBTManager.java: DEBUG: Br verbose about ShutdownHook | Sven Gothel | 2022-04-24 | 1 | -1/+4 | |
| | | | | Note: Not called via unit testing, but installed. | |||||
* | 'Fix' OpenJDK 17 deprecated and removal warnings | Sven Gothel | 2022-04-23 | 3 | -7/+15 | |
| | ||||||
* | DBTAdapter.java: Fix BTAdapter::removeStatusListener() return value | Sven Gothel | 2022-04-23 | 1 | -1/+1 | |
| | ||||||
* | noexcept: BTGattChar + BTGattDesc | Sven Gothel | 2022-04-23 | 1 | -1/+4 | |
| | ||||||
* | Expose original AD_IND and AD_SCAN_RSP EIR in BTDevice, uniquely indicated ↵ | Sven Gothel | 2022-04-20 | 6 | -2/+117 | |
| | | | | by its EInfoReport::Source and use it to complete exact advertising in dbt_repeater00 | |||||
* | BTDevice::connectLE(): Fix default conn_interval_min 15ms -> 10ms, matching ↵v2.6.5 | Sven Gothel | 2022-04-19 | 1 | -1/+1 | |
| | | | | Connection_Parameter.md and unit tests (v2.6.5) | |||||
* | DBTManager.cxx: Adopt to jaulib FunctionDef changes | Sven Gothel | 2022-04-18 | 1 | -2/+2 | |
| | ||||||
* | Fix and document default connection paramter, leaning to higher performance ↵ | Sven Gothel | 2022-04-14 | 1 | -4/+4 | |
| | | | | side - add documentation file | |||||
* | Align C++ -> Java BTGattChar::get[ClientCharConfig,UserDescription]() and ↵ | Sven Gothel | 2022-04-11 | 3 | -48/+70 | |
| | | | | | | add API doc Reorder the java code a little to better match C++ | |||||
* | Cleanup Gatt numbers: Merge GattTypes.hpp into GattNumbers.hpp, remove ↵ | Sven Gothel | 2022-04-11 | 2 | -0/+2 | |
| | | | | redundant and unrelated BTGattDesc::Type | |||||
* | BTGattCmd: Fix DEBUG mode: Check rsp_data @ string conversion and use ↵ | Sven Gothel | 2022-04-09 | 1 | -2/+6 | |
| | | | | BTUtils.bytesHexString(..) for string conversion | |||||
* | DBTGattChar.findGattDesc() (java): Fix wrong comparison (inverse, typo) | Sven Gothel | 2022-04-09 | 1 | -1/+1 | |
| | ||||||
* | *::setDefaultConnParam(): Fix API doc, remove copy/paste fragment | Sven Gothel | 2022-04-08 | 1 | -1/+1 | |
| | ||||||
* | API doc: Fix DiscoveryPolicy::PAUSE_CONNECTED_UNTIL_READY and ↵ | Sven Gothel | 2022-02-09 | 2 | -5/+2 | |
| | | | | | | | | | | | PAUSE_CONNECTED_UNTIL_PAIRED, which is without GATT service discovery .. GATT service discovery is not included anymore, since user is required to call BTDevice::getGattServices() to initiate MTU exchange and the GATT service discovery. See new to old: - commit 1443d3a084342fffacd405fae3c44ef290bd438e - commit ab9f3dec2d06b9e39241c497e8aa00aaa23966c3 | |||||
* | BDAddressAndType: Document equals(..) method | Sven Gothel | 2022-02-08 | 1 | -0/+6 | |
| | ||||||
* | BT[Adapter|Device].java: Document equals(..) method | Sven Gothel | 2022-02-08 | 3 | -13/+31 | |
| | ||||||
* | Refactor TestDBTClientServer* (reuse tasks); Adding server-adapter for ↵ | Sven Gothel | 2022-02-07 | 1 | -1/+5 | |
| | | | | client-mode discovery test post client connection | |||||
* | Adopt jaulib detailed git version info: Using VERSION_COMMITS and ↵ | Sven Gothel | 2022-02-07 | 2 | -7/+7 | |
| | | | | VERSION_SHA1_SHORT. VERSION_LONG reflects post-tag and dirty. | |||||
* | Fix commit ecaa2cf69208586da5305cd0289820a88859eb6b: Eclipse erroneous added ↵ | Sven Gothel | 2022-02-07 | 1 | -4/+0 | |
| | | | | junit packages to import | |||||
* | Doxygen: Add 'trial' source path, disable CALL_GRAPH (CALLER_GRAPH is ↵ | Sven Gothel | 2022-02-07 | 1 | -0/+21 | |
| | | | | enough), add \example TestDBTClientServer*.java | |||||
* | BTDevice: Replace EInfoReport when disconnected w/ empty one (avoid ↵ | Sven Gothel | 2022-02-07 | 1 | -0/+2 | |
| | | | | accumulation across connects w/o removeDevice), incl in unit test | |||||
* | Fix DBTAdapter.removeAllStatusListener(): Remove DBTDevice listener and have ↵ | Sven Gothel | 2022-02-07 | 2 | -31/+13 | |
| | | | | | | | | | (re-added) DBTAdapter update DBTDevice.isConnected Completes commit bac686561fdaf10813738d489f01b557a3812259. This change set allows using BTAdapter.removeAllStatusListener() while having the internal functionality preserved. | |||||
* | BTAdapter/HCIHandler: Reflect: Advertising is active until either disabled ↵ | Sven Gothel | 2022-02-06 | 1 | -0/+11 | |
| | | | | | | | | | | | via stopAdvertising() or _a_connection_ has been made. This fix set's HCIHandler's 'advertisingEnabled' flags to 'false' after a 'connection complete' event had occured. Further, HCIHandler::le_enable_adv(..) overrides a potential erroneous HCI failure when: - disabling advertising when already disabled, or - enabling advertising when already enabled as stated in spec 'BT Core Spec v5.2: Vol 4 HCI, Part E HCI Functional: 7.8.9 LE Set Advertising Enable command' | |||||
* | BTFactory: Expose getManifest() .. helper function to retrieve a Manifest ↵ | Sven Gothel | 2022-02-06 | 1 | -1/+4 | |
| | | | | instance | |||||
* | DBTAdapter: Fix removeAllStatusListener(): Re-add internal listener to ↵ | Sven Gothel | 2022-02-06 | 2 | -3/+8 | |
| | | | | maintain functionality. | |||||
* | DBTAdapter: Use BTUtils.println(..) instead of System.err.println(..) | Sven Gothel | 2022-02-06 | 1 | -11/+11 | |
| | ||||||
* | DBT[Adapter|Manager].java: Add 'final' qualifier to public methods | Sven Gothel | 2022-02-06 | 2 | -40/+40 | |
| | ||||||
* | BTAdapter.java: API doc: Replace HTML tag with Markup list | Sven Gothel | 2022-02-06 | 1 | -24/+19 | |
| | ||||||
* | Add invocation example to dbt_peripheral00.cpp and dbt_repeater00.cpp (and ↵ | Sven Gothel | 2022-02-05 | 1 | -0/+3 | |
| | | | | remark on their Java counterpart, if existing) | |||||
* | Custom GATT Processing: MTU and remote GATT Services shall be processed at ↵ | Sven Gothel | 2022-02-02 | 4 | -12/+18 | |
| | | | | | | | | | | | | | request only via BTDevice::getGattServices() This reverts MTU/GATT-Services 'push up' from getGattServices() -> connectGATT() of commit ab9f3dec2d06b9e39241c497e8aa00aaa23966c3. Objective of this revert and hence removal of the unconditional MTU/GATT-Services query is to allow user to use custom operations. Hence only getGattServices() will trigger the 'auto config' mechanism on the user's request. | |||||
* | BTAdapter::startAdvertising(): Set default adv_interval from 1.28s -> 400ms ↵ | Sven Gothel | 2022-02-02 | 3 | -7/+7 | |
| | | | | avoiding long delays (detection + connect), use in peripheral00 example; | |||||
* | Refine dbt_scanner10/DBTScanner10: Title, PERF status and QUIET flag | Sven Gothel | 2022-02-02 | 1 | -3/+2 | |
| | ||||||
* | JNI DBGatt[Server|Service|Char]_ctorImpl(): Add platform agnostic conversion ↵ | Sven Gothel | 2022-01-29 | 1 | -25/+28 | |
| | | | | | | | | | from long to a pointer of pointer-array (32-bit safe) We need to: `Type *service_ref = (Type *) (intptr_t) jlong_service_ref_array[i];` instead of just casting the pointer-array type to target, which only works on 64-bit platforms. | |||||
* | BTAdapter: Expose `getBTMajorVersion()` in C++ and Java, removing ↵ | Sven Gothel | 2022-01-29 | 3 | -0/+17 | |
| | | | | hasHCIExtScan(), hasHCIExtConn() and hasHCIExtAdv() | |||||
* | DBGatt[Char|Desc]: Fix API doc typo | Sven Gothel | 2022-01-28 | 2 | -2/+2 | |
| | ||||||
* | DBGatt[Char|Desc] (Server): Add setValue(..), allowing user to safely ↵ | Sven Gothel | 2022-01-28 | 4 | -1/+97 | |
| | | | | | | | | | | | overwrite (initial) value server side. Also refine getValue() API doc. Implemented on C++ and Java side. Peripheral00 example uses this facility to set the DEVICE_NAME GATT value using the current adapter name. | |||||
* | Expose BTUtils.hexStringBytes(..) from jaulib | Sven Gothel | 2022-01-27 | 1 | -0/+15 | |
| | ||||||
* | Fix DBGatt[Char|Desc].getValue(..) JNI code: Need to use DBGattValue class ↵ | Sven Gothel | 2022-01-27 | 1 | -2/+5 | |
| | | | | to construct | |||||
* | Expose BTManager::setDefaultConnParam(..) via ↵ | Sven Gothel | 2022-01-25 | 3 | -0/+52 | |
| | | | | BTAdapter::setDefaultConnParam(..), essential in server mode | |||||
* | Refine BTAdapter API and doc on commands in powerd-off state only: setName() ↵ | Sven Gothel | 2022-01-25 | 3 | -11/+25 | |
| | | | | and setSecureConnections() | |||||
* | Define BTDevice::getName(): Set by the advertised EInfoReport if available, ↵ | Sven Gothel | 2022-01-25 | 1 | -3/+8 | |
| | | | | otherwise by the GATT GenericAccess data post connection | |||||
* | EInfoReport: Use via share_ptr to allow CoW replacement and copy once (via ↵ | Sven Gothel | 2022-01-25 | 6 | -57/+134 | |
| | | | | Java as well); Drop JavaUplink, not used. | |||||
* | Add DBGattServer::Listener::write[Char|Desc]ValueDone() (C++/Java), ↵ | Sven Gothel | 2022-01-24 | 2 | -0/+46 | |
| | | | | | | | | | | | | | | | notifyies completion of single or bulk writeCharValue() .. BTGattHandler maintains a handle list 'writeDataQueueHandles', grouping all queued writes (PREPARE_WRITE_REQ). Final EXECUTE_WRITE_REQ will issue one applyWrite(..) per queued write-req. If all were successful (accepted and performed), one signalWriteDone() will be issued per handle. This allows the user to react on a completed write-queue having the full data set available. +++ | |||||
* | Enhance API doc: DBGattServer::Listener (C++) and DBGattServer.Listener (java) | Sven Gothel | 2022-01-24 | 1 | -0/+13 | |
| | ||||||
* | GattNumbers.hpp/DBGattChar.java: Add GENERIC_ATTRIBUTE's Characteristic ↵ | Sven Gothel | 2022-01-24 | 1 | -0/+5 | |
| | | | | GattCharacteristicType::SERVICE_CHANGED / DBGattChar.UUID16.SERVICE_CHANGED | |||||
* | DBTDevice::getEIRImpl(): Just copy instance w/o clear and set | Sven Gothel | 2022-01-18 | 1 | -2/+1 | |
| | ||||||
* | getHCIConnSupervisorTimeout(): Revise types and add overload (Java) | Sven Gothel | 2022-01-18 | 1 | -5/+24 | |
| | ||||||
* | DBTDevice.java/cxx: Reuse EInfoReport instance and clear before retrieving data | Sven Gothel | 2022-01-18 | 2 | -5/+6 | |
| |