Giter Site home page Giter Site logo

lidonglei1 / arduino-homekit-esp32 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mixiaoxiao/arduino-homekit-esp32

0.0 0.0 0.0 2.16 MB

[Deprecated] Native Apple HomeKit accessory implementation for the ESP32 Arduino core.

License: MIT License

C++ 2.01% C 97.99%

arduino-homekit-esp32's Introduction

Arduino-HomeKit-ESP32

[Deprecated] Native Apple HomeKit accessory implementation for the ESP32 Arduino core.

This Arduino library is a native Apple HomeKit accessory implementation for the ESP32 Arduino core, and works without any additional bridges.

This library is the ESP32 version of Arduino-HomeKit-ESP8266, and will no longer be maintained, since Espressif has published the official HomeKit library for ESP32, available on Espressif's GitHub repository esp-apple-homekit-adk.

Notes

  • This is a "only-can-work" version for ESP32, remains something to be optimized.

  • The WolfSSL used for ESP32 is based on 4.3.0-stable version with Hardware Acceleration Support (enabled by default).

  • The HomeKit running on ESP32 has a GREAT PERFORMANCE which Pair-Setup can be done in ~1.2s and Pair-Verify in < 0.1s (10x faster than ESP8266).

  • The HomeKit storage on ESP32 is based on nvs.

Performance WITH Hardware Acceleration on ESP32

  • Preinit: ~0.53s
  • Pair Setup Step 1/3: ~0s (The heavy crypto computation is done in Preinit)
  • Pair Setup Step 2/3: ~0.53s
  • Pair Setup Step 3/3: ~0.20s
  • Pair Verify Step 1/2: ~0.05s
  • Pair Verify Step 2/2: ~0.02s

Performance WITHOUT Hardware Acceleration on ESP32

  • Preinit: ~2.2s
  • Pair Setup Step 1/3: ~0s (The heavy crypto computation is done in Preinit)
  • Pair Setup Step 2/3: ~2.5s
  • Pair Setup Step 3/3: ~0.1s
  • Pair Verify Step 1/2: ~0.06s
  • Pair Verify Step 2/2: ~0.03s

Setup code of the example sketch

111-11-111

Manual Installation

Refer to the official guide: Manual installation Note: this library will not publish the release version for Arduino IDE.

Manual Installation for Windows

  1. Click on "Clone or Download" button, then click "Download ZIP" on the page.
  2. Extract the contents of the downloaded zip file.
  3. Rename the extracted folder to "Arduino-HomeKit-ESP32".
  4. Move this folder to your libraries directory. (under windows: C:\Users\<USERNAME>\Documents\Arduino\libraries\)
  5. Restart your Arduino IDE.
  6. Check out the examples.

arduino-homekit-esp32's People

Contributors

mixiaoxiao avatar

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.