2024年11月24日星期日 上午3:55:09

HomeKit(HomeKit Accessory Protocol)HAP协议 Java实现

8 个月 前
#29594 引用
HomeKit(HomeKit Accessory Protocol)HAP协议 Java实现

blog:https://blog.csdn.net/qq_28986503/article/details/129830868

[url]实现基于HAP-Java库实现[/url]


假如有个HomeKit配件,是一个带灯泡的电风扇

 <dependency>
      <groupId>io.github.hap-java</groupId>
      <artifactId>hap</artifactId>
      <version>2.0.7</version>
    </dependency>
    <dependency>
      <groupId>com.google.zxing</groupId>
      <artifactId>core</artifactId>
      <version>3.4.1</version>
    </dependency>


              
0
8 个月 前
#29595 引用

https://github.com/hap-java/HAP-Java

HAP-Java is a Java implementation of the HomeKit Accessory Protocol.

Using this library, you can create your own HomeKit Accessory or HomeKit Accessory Bridge.

This library would not have been possible without Tian Zhang who did a lot of the hard work of figuring out how the protocol works in his NodeJS implementation.
0