4 Star 18 Fork 4

吴泽滨 / homekit-bridge

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

homekit-bridge

license

Introduction

A HomeKit gateway specially designed for embedded devices, it allows you to connect non-HomeKit devices to HomeKit through simple configuration.

Code style

HomeKit bridge supports code style checking, the checker is cpplint, a command line tool that checks for style issues in C/C++ files according to the Google C++ Style Guide.

Build

Clone the repo

Add --recursive to initialize submodules in the clone.

    git clone --recursive https://github.com/KNpTrue/homekit-bridge.git

Platform Linux (Ubuntu)

  1. Install dependencies:

    $ sudo apt install cmake ninja-build clang libavahi-compat-libdnssd-dev libssl-dev python3-pip
    $ pip3 install cpplint
  2. Compile and run:

    $ mkdir build
    $ cd build
    $ cmake -G Ninja .. && ninja
    $ ./platform/linux/homekit-bridge
  3. Run the example

    $ ./platform/linux/homekit-bridge -d example_scripts

Platform ESP

  1. Set up the host environment and ESP-IDF (v4.3) as per the steps given here.

  2. ESP-IDF currently uses MbedTLS 2.16.x, whereas HomeKit ADK requires 2.18. A branch mbedtls-2.16.6-adk is being maintained here which has the required patches from 2.18, on top of 2.16.6. To switch to this, follow these steps:

    $ cd $IDF_PATH/components/mbedtls/mbedtls
    $ git pull
    $ git checkout -b mbedtls-2.16.6-adk origin/mbedtls-2.16.6-adk
  3. You can use homekit-bridge with any ESP32 or ESP32-S2 board. Compile, flash and connect to console as below:

    $ cd /path/to/homekit-bridge/platform/esp
    $ export ESPPORT=/dev/tty.SLAB_USBtoUART  # Set your board's serial port here
    $ idf.py set-target <esp32/esp32s2>
    $ idf.py flash
    $ idf.py monitor
  4. Use join command to configure Wi-Fi:

    esp32 > join "<ssid>" "<password>"

Usage

TODO

License

MIT © 2021 KNpTrue and homekit-bridge contributors.

Comments ( 0 )

Sign in for post a comment

About

Cancel

Releases

No release

homekit-bridge

Contributors

All

Activities

load more
can not load any more
1
https://gitee.com/KNpTrue/homekit-bridge.git
git@gitee.com:KNpTrue/homekit-bridge.git
KNpTrue
homekit-bridge
homekit-bridge
master

Search

102255 3a0e046c 1850385 102255 7aaa926c 1850385