Code Monkey home page Code Monkey logo

homekit's Introduction

Homekit

This is work-in-progress!

This project aims to implement Homekit for the ESP32 using the Arduino framework where possible.

Build instructions

This is a application to be used with Espressif IoT Development Framework (ESP-IDF) and arduino-esp32.

Please check ESP-IDF docs for getting started instructions and install instructions.

Espressif IoT Development Framework

Once the ESP-IDF is installed:

$ git clone https://github.com/An00bIS47/Homekit
$ cd Homekit
$ git submodule update --init --recursive
$ make -j4
$ make flash monitor

WiFi Settings

Add a file called WiFiCredentials.hpp in the main folder and edit the settings:

//
// WiFiCredentials.hpp
// Homekit
//
//  Created on: 
//      Author: 
//

#ifndef WIFICREDENTIALS_HPP_
#define WIFICREDENTIALS_HPP_

#define WIFI_SSID       "SSID"
#define WIFI_PASSWORD   "PASSWORD"

#endif /* WIFICREDENTIALS_HPP_ */

EEPROM Structure - Not yet working as intended :(

Pairings and long term keys are stored in a EEPROM partition called eepromwith a size of 4096 Bytes. To reset the EEPROM partition call make erase_flash.

| Address | Description            | Bytes              |  
| ------- | ---------------------- | -------------------|  
|       0 | Long Term Public Key   |                 32 |
|      32 | Long Term Private Key  |                 64 |  
|         |                        |                    |  
|      96 | 1. Pairing: id  	   |                 36 |  
|     132 | 1. Pairing: key  	   |                 36 |  
|         |                        |                    |  
|     168 | 2. Pairing: id  	   |                 36 |  
|     204 | 2. Pairing: key  	   |                 36 |
|         |                        |                    |  

homekit's People

Contributors

an00bis47 avatar

Watchers

James Cloos avatar Stepan 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.