Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zsmartsystems/com.zsmartsystems.bluetooth.bluegiga
Java library to communicate with the BlueGiga Bluetooth BLE module
https://github.com/zsmartsystems/com.zsmartsystems.bluetooth.bluegiga
ble bluegiga bluetooth bluetoothsmart silabs
Last synced: about 2 months ago
JSON representation
Java library to communicate with the BlueGiga Bluetooth BLE module
- Host: GitHub
- URL: https://github.com/zsmartsystems/com.zsmartsystems.bluetooth.bluegiga
- Owner: zsmartsystems
- License: epl-1.0
- Created: 2017-05-27T08:10:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-02-01T00:56:10.000Z (almost 3 years ago)
- Last Synced: 2023-09-08T06:20:37.972Z (over 1 year ago)
- Topics: ble, bluegiga, bluetooth, bluetoothsmart, silabs
- Language: Java
- Homepage:
- Size: 288 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Overview
This project aims to provide a Library to implement the Blue Giga API written in Java. This provides access to the BlueGiga modules via a serial interface
The main handler class is ```BlueGigaSerialHandler```. This implements the serial interface and transaction management. It should be instantiated with the constructor ```BlueGigaSerialHandler(final InputStream inputStream, final OutputStream outputStream)```.
Users can send a BlueGiga command with the ```BlueGigaSerialHandler.sendTransaction``` method. This method will return the response frame linked to the command. Alternatively, the ```BlueGigaSerialHandler.sendBleRequestAsync``` method can be used to return a ```Future```, or ```BlueGigaSerialHandler.queueFrame``` can be called to simply queue a frame with no transaction management.
Users can subscribe to event notifications by implementing the ```BlueGigaEventListener``` interface and registering for notifications with the ```BlueGigaSerialHandler.addEventListener``` method.
An example console application is provided in the ```com.zsmartsystems.bluetooth.bluegiga.console``` project. This is a little hacky at the moment as it is used as a test application but provides a good reference on the libraries use.
# Contributing
Codacy static testing should pass.
Contributions must be supported with tests.
Contributions must be your own.# License
The code is licensed under [Eclipse Public License](https://www.eclipse.org/legal/epl-v10.html).