Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
L2CAP Support for ISO 18013-5 Holders (#27)
* L2CAP Support for ISO 18013-5 Holders NOTE: Currently not working! See below. This provides L2CAP support for the holder for 18013-5. This is disabled at present; the code is in place, but calling connect() on the L2CAP socket throws a "resources not available" exception for reasons I have not yet tracked down. The code should otherwise be ready, however; the request read and the response write are both in place. The presence of an L2CAP characteristic on the peripheral no longer breaks the old flow for the code, so we now properly do non-L2CAP connections to L2CAP peripherals. For convenience, this also includes a makefile to orchestrate building and running; `make` or `make install` will build the example app and attempt to install it on all connected android devices. `make run` will launch the example app on one device and attempt to attach `logcat`. `make help` lists the available commands. * Lint fixes & a linter target in the makefile. * Addressing PR comments. * Fix makefile typos. * L2CAP fixes for the holder. This code adds a fallback so that in the event an exception is thrown by the L2CAP socket during connection, it will fall back to the old flow. This is necessary when interacting with the iPhone reader, as Android devices do not seem to get along with BLE link-layer encryption as implemented in iOS. --------- Co-authored-by: Todd Showalter <[email protected]>
- Loading branch information