Giter Site home page Giter Site logo

charleshe023 / homekit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eager7/homekit

0.0 0.0 0.0 4.58 MB

此工程实现了苹果的homekit协议,可以通过苹果手机的家庭APP以及Siri控制符合HAP协议的智能硬件

C# 0.84% Objective-C 5.18% C++ 8.39% C 81.19% Java 2.15% Makefile 1.17% R 0.19% Roff 0.58% Shell 0.06% Python 0.20% CMake 0.06%

homekit's Introduction

HomeKit 协议栈

[TOC]

介绍

此工程实现了苹果的homekit协议,可以通过苹果手机的家庭APP以及Siri控制符合HAP协议的智能硬件。 工程分成三个部分,HomeKit_Server目录实现了HAP协议,WAC_Server目录实现了WAC协议,Bonjour目录实现了Bonjour协议。

依赖

在编译前需要安装部分软件包依赖:

sudo apt-get install libssl-dev libjson-c-dev libavahi-compat-libdnssd-dev

在某些系统下,如Ubuntu16.04,上面的包会自动安装Bonjour服务, 如果还不支持Bonjour服务,需要安装mDNSResponser 编译方式如下。

mDNSResponser编译

下载软件包解压,然后编译并安装:

tar -xvf mDNSResponder-98.tar.gz
cd mDNSResponder-98/mDNSPosix/
make os=linux
sudo make os=linux install

HomeKit_Server编译

使用CMakeList.txt进行编译,在homekit目录下创建一个编译目录,然后运行cmake:

mkdir build
cd build
cmake ..
make

WAC_Server编译

进入目录运行make即可,可以编译出可执行文件WACServer。

运行

编译出应用后,在build目录下执行编译出的可执行文件即可。

homekit's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.