|
1 | 1 | # DeviceHive ESP8266 Firmware
|
2 |
| -Special firmware for usage ESP8266 as local web server with RESTful API and as DeviceHive clouds client. |
3 |
| -This repo consist of few parts of this project which can be used with |
| 2 | +Special firmware to use ESP8266 as a local web server with RESTful API and as a client of DeviceHive cloud. |
| 3 | +This repo consists of a few parts which can be used with |
4 | 4 | other projects. Each project has dedicated readme file.
|
5 | 5 |
|
6 | 6 | 
|
7 | 7 | Photo above is a real photo of the demo device contructed with esp8266. See
|
8 |
| -http://youtu.be/hzi4djt-wdg |
| 8 | +[YouTube video](http://youtu.be/hzi4djt-wdg). |
9 | 9 |
|
10 | 10 | # [DeviceHiveESP8266.md](DeviceHiveESP8266.md)
|
11 | 11 | This is the main documentation file for this firmware. Document contains
|
12 |
| -commands specification, describes all features and firmware usage. |
13 |
| -[Click here to open it.](DeviceHiveESP8266.md) |
| 12 | +commands specification, describes all features and firmware usage. |
| 13 | +[Click here to open it](DeviceHiveESP8266.md). |
14 | 14 |
|
15 | 15 | # Demo videos
|
16 |
| -Zero wireless configuring with Android http://youtu.be/2J98YDpbJKo |
17 |
| -DeviceHive clouds demos: |
18 |
| -BH1750 Ambient light http://youtu.be/AkSFdO0soyo |
19 |
| -DS18B20 + iButton + DHT11 http://youtu.be/IuvxwCPNZCc |
20 |
| -Muscle connected to the cloud http://youtu.be/8L96nBNHE14 |
21 |
| -SSD1306 OLED display http://youtu.be/gKgU6RzaxFU |
22 |
| -Multple sensor connection http://youtu.be/hzi4djt-wdg |
23 |
| -Smart socket http://youtu.be/hCdzcCjYYMw |
24 |
| -Wireless Configuring with Mac and Linux http://youtu.be/sFD2TTZNNvo |
25 |
| -BMP180 Atmospheric pressure http://youtu.be/P2rxnVjRPyc |
26 |
| -MPU6050 Accelerometer + Gyroscope http://youtu.be/IRj4tOfLTAM |
27 |
| -MFRC522 RFID Reader http://youtu.be/VMT3v49d57g |
28 |
| -Simple relay http://youtu.be/ZLq2X2n_wR0 |
| 16 | +- [Zero wireless configuring with Android](http://youtu.be/2J98YDpbJKo) |
| 17 | +- [BH1750 Ambient light](http://youtu.be/AkSFdO0soyo) |
| 18 | +- [DS18B20 + iButton + DHT11](http://youtu.be/IuvxwCPNZCc) |
| 19 | +- [Muscle connected to the cloud](http://youtu.be/8L96nBNHE14) |
| 20 | +- [SSD1306 OLED display](http://youtu.be/gKgU6RzaxFU) |
| 21 | +- [Multple sensor connection](http://youtu.be/hzi4djt-wdg) |
| 22 | +- [Smart socket](http://youtu.be/hCdzcCjYYMw) |
| 23 | +- [Wireless Configuring with Mac and Linux](http://youtu.be/sFD2TTZNNvo) |
| 24 | +- [BMP180 Atmospheric pressure](http://youtu.be/P2rxnVjRPyc) |
| 25 | +- [MPU6050 Accelerometer + Gyroscope](http://youtu.be/IRj4tOfLTAM) |
| 26 | +- [MFRC522 RFID Reader](http://youtu.be/VMT3v49d57g) |
| 27 | +- [Simple relay](http://youtu.be/ZLq2X2n_wR0) |
29 | 28 |
|
30 |
| -# custom firmwares |
| 29 | +# Custom firmwares |
31 | 30 | There is a possibility to build custom firmware on top of this which sends some
|
32 | 31 | notifications to DeviceHive server periodically. In pauses firmware goes to deep
|
33 | 32 | sleep mode. Reimplement `custom_firmware_request()` method in
|
34 | 33 | `custom_firmware.c` file with reading of some sensors data. There are
|
35 | 34 | implementation for some sensors in `sources/devices` dir. Also, it is possible
|
36 | 35 | to create interaction with any sensor using interface implementation modules
|
37 |
| -(dhi2c, dhspi, dhonewire etc). See `climate` branch as an example. |
| 36 | +(`dh/i2c`, `dh/spi`, `dh/onewire` etc). See `climate` branch as an example. |
38 | 37 |
|
39 |
| -# esp-utils |
| 38 | +# Directory content |
| 39 | + |
| 40 | +## esp-utils |
40 | 41 | Simple utils for flashing and connecting to ESP8266.
|
41 | 42 |
|
42 |
| -# examples-cloud |
43 |
| -Simple web pages with JavaScript sample of sendind recieving command |
44 |
| -from device via cloud. Onewire DS18B20 examples use 0x33[SKIP ROM] command |
| 43 | +## examples-cloud |
| 44 | +Simple web pages with JavaScript sample of sendind and receiving commands |
| 45 | +from device via cloud. Onewire DS18B20 examples use `0x33[SKIP ROM]` command |
45 | 46 | which means that examples work only with one currently connected device. Some
|
46 |
| -browsers(for example Firefox) block cross domen requests even for local file. |
| 47 | +browsers (for example Firefox) block cross domen requests even for local file. |
47 | 48 | Allow temporary cross domain requests in setting or use another browser to run
|
48 | 49 | examples.
|
49 | 50 |
|
50 | 51 | Local RESTful API samples are embedded to firmware. Sources of them can be found
|
51 | 52 | at firmware-src/pages directory.
|
52 | 53 |
|
53 |
| -# firmware-src |
| 54 | +## firmware-src |
54 | 55 | Sources of DeviceHive ESP8266 firmware.
|
55 | 56 |
|
56 |
| -# firmware-src/genbin.sh |
| 57 | +## firmware-src/genbin.sh |
57 | 58 | Small utils which is written on bash and can be used on any OS. This util
|
58 |
| -creates binary firmware files files from crosstool-NG binary file output. |
| 59 | +creates binary firmware files from crosstool-NG binary file output. |
59 | 60 |
|
60 |
| -# firmware-tests |
61 |
| -Tests for firmware. Youcan find sample of command in file requests.html. Each |
62 |
| -addtest() instance have boolean third parameter. If this parameters is true it |
| 61 | +## firmware-tests |
| 62 | +Tests for firmware. You can find command samples in file requests.html. Each |
| 63 | +`addtest()` instance have boolean third parameter. If this parameters is `true` it |
63 | 64 | means that command and parameters is written correctly and you can use it as
|
64 | 65 | a sample.
|
65 | 66 |
|
66 |
| -# release |
| 67 | +## release |
67 | 68 | Scripts for generating binary releases.
|
68 | 69 |
|
69 |
| -# sdk |
| 70 | +## sdk |
70 | 71 | SDK from chip manufactor. Included in this repo to make sure that we are
|
71 | 72 | using the same version of this SDK to avoid any surprises from changing APIs
|
72 | 73 |
|
73 |
| -# License |
74 |
| -The MIT License. See LICENSE file. Except sdk directory, it has ESPRSSIF MIT |
75 |
| -License, see sdk/License file for details. |
| 74 | +## License |
| 75 | +The MIT License. See [LICENSE](./LICENSE) file. Except sdk directory, it has ESPRSSIF MIT |
| 76 | +License, see [sdk/License](./sdk/License) file for details. |
76 | 77 |
|
77 | 78 | # Authors
|
78 |
| -Nikolay Khabarov |
79 |
| -Igor Malovitsa |
80 |
| -Maksim Kleshchevnikov |
| 79 | +- Nikolay Khabarov |
| 80 | +- Sergey Polichnoy |
| 81 | +- Igor Malovitsa |
| 82 | +- Maksim Kleshchevnikov |
0 commit comments