• Stars
    star
    166
  • Rank 227,748 (Top 5 %)
  • Language
    C
  • License
    MIT License
  • Created over 9 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

DeviceHive esp8266 firmware. Control hardware via clouds with DeviceHive!

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.

DeviceHiveESP8266.md

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

More Repositories

1

devicehive-java-server

DeviceHive Java Server
Java
367
star
2

devicehive-audio-analysis

Python
196
star
3

devicehive-video-analysis

Python
155
star
4

devicehive-docker

Run DeviceHive Docker containers with Docker Compose and on Kubernetes
Mustache
92
star
5

AlexaDevice

Alexa virtual device
Python
43
star
6

android-ble

DeviceHive Bluetooth Low Energy bridge for Android
Java
42
star
7

IoT-framework

* DEPRECATED * DeviceHive GO Framework for IoT and M2M
Go
40
star
8

devicehive-python

DeviceHive Python library
Python
30
star
9

framework

* DEPRECATED *
Java
29
star
10

devicehive-.net

DeviceHive .NET library
C#
26
star
11

devicehive-java

DeviceHive java client library
Java
24
star
12

devicehive-grafana-datasource

DeviceHive datasource for Grafana
JavaScript
18
star
13

devicehive-admin-console

[DEPRECATED] DeviceHive OLD admin console (For the newest version please follow https://github.com/devicehive/devicehive-admin-panel)
JavaScript
17
star
14

devicehive-mqtt

MQTT plugin for DeviceHive server
JavaScript
13
star
15

devicehive-obd2

DeviceHive gateway for OBD2 compatible cars
Java
10
star
16

devicehive-freeboard-datasource

DeviceHive datasource plugin for https://freeboard.io/
JavaScript
8
star
17

devicehive-admin-panel

TypeScript
7
star
18

devicehive-javascript

DeviceHive JavaScript Library. Works with NodeJs and browsers.
JavaScript
7
star
19

lora-gateway

Simple gateway implementation between LoRa and DeviceHive.
Python
7
star
20

devicehive-python-device-simulator

Device activity simulating tool.
Python
5
star
21

devicehive-python-webconfig

Simple web interface for devicehive-python
Python
5
star
22

devicehive-go

Golang client library for DeviceHive
Go
5
star
23

devicehive-uc

* DEPRECATED *
C
4
star
24

devicehive-cpp

* DEPRECATED *
C++
4
star
25

devicehive-demo

* DEPRECATED * DeviceHive Server + BLE Gateway Demo
JavaScript
4
star
26

devicehive-playground

DeviceHive Playground website leveraging multi-tenant DeviceHive deployment configuration
HTML
4
star
27

devicehive-arduino

* DEPRECATED * DeviceHive library for Arduino (binary protocol)
Arduino
4
star
28

devicehive-ws-proxy

JavaScript
4
star
29

devicehive-plugin-cassandra-node

DeviceHive Cassandra storage plugin. NodeJS implementation.
JavaScript
4
star
30

dcos-bridging

JavaScript
3
star
31

devicehive-tests

JavaScript
3
star
32

devicehive-plugin-ethereum

Devicehive plugin for smart contracts
JavaScript
3
star
33

devicehive-android

DeviceHive Android example
Java
3
star
34

devicehive-backend-node

JavaScript
2
star
35

alljoyn

* DEPRECATED * AllJoyn Projects Combined
Shell
2
star
36

devicehive-lights

Control your Christmas Lights with DeviceHive
Java
2
star
37

devicehive-.net-mf

* DEPRECATED *
C#
2
star
38

devicehive-plugin-java-template

Java
2
star
39

devicehive-plugin-core-node

DeviceHive custom plugin core functionality. NodeJS implementation
JavaScript
1
star
40

devicehive-rest-api-docs

Generated version of device hive rest api documentation
HTML
1
star
41

devicehive-proxy

Shell
1
star
42

devicehive-ios

* DEPRECATED *
Objective-C
1
star
43

openwrt-firmware

* DEPRECATED * OpenWrt Firmware with built-in DeviceHive support
Makefile
1
star
44

devicehive-mqx

* DEPRECATED * Devicehive cpp gateway example for Freescale MQX RTOS
C++
1
star
45

devicehive-landing-page

CSS
1
star
46

devicehive-coap-proxy

DeviceHive CoAP proxy
JavaScript
1
star
47

devicehive-proxy-message

DeviceHive proxy messages classes
JavaScript
1
star
48

android-sensors

* DEPRECATED * DeviceHive example of collecting statistics from android sensors
Java
1
star
49

devicehive-j2me

* DEPRECATED *
Java
1
star