http://bluecove.org/
BlueCove is a Java library for Bluetooth, for MsWindows, Mac OSX and others.
but it seems that it does not support Bluetooth Low Enegry 4.0.
Android has a standard Java library for Bluetooth LE 4.0: http://developer.android.com/guide/topics/connectivity/bluetooth.html
Is there a Java library for Bluetooth LE 4.0 for MsWindows and/or Mac OSX?
This document is a guide for creating Java IoT applications that can access remote Bluetooth Low Energy devices on IoT platforms, such as the Intel® Edison development board. This article is in the Product Showcase section for our sponsors at CodeProject.
The documentation for the Bluetooth LE API exposed by TinyB can be found online at the following locations: The HelloTinyB (or hellotinyb for C++) example uses a Texas Instruments Sensor Tag, from which it reads the ambient and object temperature.
BlueCove can be used in Java Standard Edition (J2SE) 1.1 or newer. BlueCove has been tested on following JVM: SUN Java 2 Platform Standard Edition 1.4.2 on Windows XP/X86 SUN Java 2 Platform Standard Edition 5.0 on Windows XP/X86 SUN Java 2 Platform Standard Edition 6.0 on Windows XP/X86 and Windows Vista
Show activity on this post. BlueCove is a Java library for Bluetooth, for MsWindows, Mac OSX and others. but it seems that it does not support Bluetooth Low Enegry 4.0.
After a long search without success on the same subject for myself, I'm pretty sure that there at present no library providing support Bluetooth LE on J2SE ...
JSR82 is for bluetooth 2.x only, and Bluetooth 4.x (Bluetooth LE) is a very different protocol.
So, this may be a good idea to start a new project on the subject, based for example on the bluez stack on linux (or equivalent for MacOS X and Windows) or doing something like BGAPI (which apparently implements the bluetooth networking protocol, with links to a specific device)
Intel's Edison project has a small wrapper API (read JNI) for BlueZ libs under Yocto Linux that gives full BLE support. You can find the source code in Github; intel-iot-devkit/tinyb
UPDATE 2021: There is now the possibility with Project Panama that native Bluetooth can be supported in Java. You would need to know a little about the platform and the library to use it. See Project Panama for more information; projects/panama
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With