GithubHelp home page GithubHelp logo

renliguo / esp8266-firmware Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devicehive/esp8266-firmware

0.0 1.0 0.0 10.05 MB

DeviceHive esp8266 firmware. Control hardware via clouds with DeviceHive!

License: MIT License

Makefile 0.36% C++ 8.83% HTML 12.90% C 75.38% Shell 0.67% Batchfile 0.01% CSS 1.66% JavaScript 0.19%

esp8266-firmware's Introduction

DeviceHive ESP8266 Firmware

Special firmware to use ESP8266 as a local web server with RESTful API and as a client of DeviceHive cloud. This repo consists of a few parts which can be used with other projects. Each project has dedicated readme file.

Photo above is a real photo of the demo device contructed with esp8266. See YouTube video.

This is the main documentation file for this firmware. Document contains commands specification, describes all features and firmware usage. Click here to open it.

Demo videos

Custom firmwares

There is a possibility to build custom firmware on top of this which sends some notifications to DeviceHive server periodically. In pauses firmware goes to deep sleep mode. Reimplement custom_firmware_request() method in custom_firmware.c file with reading of some sensors data. There are implementation for some sensors in sources/devices dir. Also, it is possible to create interaction with any sensor using interface implementation modules (dh/i2c, dh/spi, dh/onewire etc). See climate branch as an example.

Directory content

esp-utils

Simple utils for flashing and connecting to ESP8266.

examples-cloud

Simple web pages with JavaScript sample of sendind and receiving commands from device via cloud. Onewire DS18B20 examples use 0x33[SKIP ROM] command which means that examples work only with one currently connected device. Some browsers (for example Firefox) block cross domen requests even for local file. Allow temporary cross domain requests in setting or use another browser to run examples.

Local RESTful API samples are embedded to firmware. Sources of them can be found at firmware-src/pages directory.

firmware-src

Sources of DeviceHive ESP8266 firmware.

firmware-src/genbin.sh

Small utils which is written on bash and can be used on any OS. This util creates binary firmware files from crosstool-NG binary file output.

firmware-tests

Tests for firmware. You can find command samples in file requests.html. Each addtest() instance have boolean third parameter. If this parameters is true it means that command and parameters is written correctly and you can use it as a sample.

release

Scripts for generating binary releases.

sdk

SDK from chip manufactor. Included in this repo to make sure that we are using the same version of this SDK to avoid any surprises from changing APIs

License

The MIT License. See LICENSE file. Except sdk directory, it has ESPRSSIF MIT License, see sdk/License file for details.

Authors

  • Nikolay Khabarov
  • Sergey Polichnoy
  • Igor Malovitsa
  • Maksim Kleshchevnikov

esp8266-firmware's People

Contributors

nikolay-kha avatar pilatuz avatar imlvts avatar astaff avatar bearded-maks avatar zubrabubra avatar devrn avatar dmigo avatar iilunin avatar

Watchers

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