The use of the ESP8266 in the world of IoT

User avatar
By Nikolay-DH
#31095 Yes, sure. It's completely up to you to create any timers you want. DeviceHive firmware is a completely dummy transparent bridge between cloud app and real hardware. You can implement any timers in a server application and esp8266 perform whatever you want on timer event.

For example lets consider your case with motion sensors and how to solve it with DeviceHive and esp8266. Each bulb, motion sensor and switch have embedded esp8266 module with DeviceHive firmware. Each module is connected to cloud service which is DeviceHive server + application with business logic implementation. This application waits for event from switches and sends command for turning on/off corresponding bulb. It also analyzes data from motion sensors. We can track humans presence in each room. For example, if someone enters into a room there is no need to turn off light before someone leaves a room. Except bedrooms where special logic can be implemented. Sure, this logic can have schedule with some rules, for example special schedule for holidays. It's not a big deal for app which works in cloud :)

Also, this model is very useful if you want to change something in logic. For example you want to add feature that lights shouldn't be turn on in daytime. You can take sunrise and sunset time from some weather forecast service or calculate it by yourself and use this data to turning off lights. All that you need to do is deploy new app with new business logic to cloud. And all devices would follow new logic.
User avatar
By Nikolay-DH
#57767 Great news! DeviceHive firmware was updated to version 0.5.
What's new:
- uploadable web page
- mDNS
- local embedded web server with tools and samples
- local RESTful API
- support for some popular sensor devices
- bug fixes

This release contains plenty of features for usage in LAN. Each chip with DeviceHive firmware v0.5 becomes RESTful API service with HTTP server. Just connect your sensor and send HTTP request to chip. For example for BMP180 request is
Code: Select allcurl -i -X POST  \
     -H "Authorization: Bearer YourAccessKeyHere="  \
     http://chipId.local-or-ip-address/api/devices/bmp180/read

and response will be something like:
Code: Select all{
    "temperature":25.5000,
    "pressure":100521
}

You can also upload your own web page and use JS for communication with REST. Build your devices with web interface easily with DeviceHive.
Full article about new firmware feature is here - http://docs.devicehive.com/blog/deviceh ... or-esp8266