r/java • u/kevindewald • Aug 10 '26
SimpleJavaBLE 1.1 is now on Maven Central
Hey everyone!
I've posted a few SimpleBLE updates here over the years, and I wanted to share one that should make the Java bindings much easier to start using.
SimpleBLE v1.1.0 is out, and with that SimpleJavaBLE is now available on Maven Central.
dependencies {
implementation("org.simpleble:simplejavable:1.1.0")
}For those who donโt know, SimpleBLE is a cross-platform Bluetooth library with a very simple API that just works, allowing developers to easily integrate it into their projects without much effort, instead of wasting hours and hours on development.
What else is new?
Besides Maven Central support, this release fixes two fairly unpleasant issues in the Java bindings:
- Notification callbacks could be garbage-collected while a subscription was still active
- Exceptions raised while translating a Java callback could crash the JVM
If you want to try it out, you can look at the Java documentation, full release notes or source code.
The Maven Central package is new, so if you give it a try and run into any issues, let me know.
Want to know more about SimpleBLE's capabilities or see what others are building with it? Ask away!
17
u/user_of_the_week Aug 10 '26
Hey, thank you for the update. I wanted to make sure people are aware that this project is not free for commercial use: https://github.com/simpleble/simpleble/blob/main/LICENSE.md
I almost started a project using it some time ago, but decided against it because of that.
edit: Just to make sure, I have no problem with your choice of license, of course. I just think it should be mentioned.
2
u/tomayt0 Aug 10 '26 edited Aug 12 '26
I don't know much about Bluetooth etc
Would this allow me to connect to a Tapo BLE Humidity and Temperature monitor without having to use Tapo's hub?
I am wanting to try and use some sort of temperature sensor to monitor the temperature in my milkbox at the front door, so I can be alerted when it needs cooled.
https://uk.store.tapo.com/products/tapo-t310-smart-temperature-humidity-monitor
1
u/lilgreenthumb Aug 10 '26
The concern I have is that those binaries are bundled with the core dependency. Any issue with one impacts the entire version, and means extra binaries present. Any reason not going a netty styled approach with classifiers/different artifactIds?
3
u/hippydipster Aug 10 '26
Am I right in assuming that if you want to use it from Java, you need to include this maven central jar and also the underlying native libraries for your particular platform? Or is everything wrapped up in the java jars themselves?
EDIT: Found the answer:
nice
3
u/lazystone Aug 10 '26
I like your licensing/business model. Really wish you to succeed - it's nice to have more "desktop" support nowadays.