在Java蓝牙低耗能的API [英] Bluetooth low energy APIs in java

查看:261
本文介绍了在Java蓝牙低耗能的API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我与蓝牙低功耗工作。是否有任何的Java API或开源SDK的BLE?我的目标是运行我的电脑作为BLE外设。而我已经试过的,只是搜索的API的一段时间,我发现的这个。但不知道如何实现。

I am working with Bluetooth Low energy . Is there any APIs or open source SDK for BLE in java ? My goal is to run my pc as a BLE peripheral . And what I have tried is , just searched for the APIs for some time and I have found this. But dont know how to implement.

编辑:我也有一些的此处,我觉得它用来创建特色和服务。按我的理解,没有在在WindOW8需要的,因为它有内置支持的驱动程序。但我很困惑,可以增加在库运行此code。

I also have something here , I think which used to create the characteristic and services . As per my understanding there is no driver required in window8 as it has inbuilt support . But i am confused with which library to add in to run this code.

推荐答案

据我所知,没有图书馆呢。也许最好的办法是建立一个围绕Windows 8的C ++库JNI封装。为什么不启动一个开源项目?

As far as I know there is no library yet. Probably the best way is to build a JNI wrapper around the Windows 8 C++ library. Why not start an open source project?

只要你有低级别有一个可爱的小帮手库与关贸总协定配置文件的工作:的https: //github.com/movisens/SmartGattLib

As soon as you have the low level there is a nice little helper library to work with the GATT profiles: https://github.com/movisens/SmartGattLib

SmartGattLib是简化了蓝牙智能设备(又名蓝牙低耗能蓝牙4.0)工作的Java库。它提供了通过关贸总协定规范和便捷的方式来跨preT的特性(例如心率,BatteryLevel)的所有的UUID。本库没有的依赖,并可以与每一个蓝牙SMART堆栈使用。

SmartGattLib is a Java library that simplifies the work with Bluetooth SMART devices (a.k.a Bluetooth Low Energy in Bluetooth 4.0). It provides all UUIDs of the adopted GATT specification and an convenient way to interpret the characteristics (e.g. Heart Rate, BatteryLevel). The library has no dependencies and can be use with every Bluetooth SMART stack.

这篇关于在Java蓝牙低耗能的API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆