ESP8266 GPIO control - · PDF fileAgenda IoT messaging challenges Why Kaa? Reference...
Transcript of ESP8266 GPIO control - · PDF fileAgenda IoT messaging challenges Why Kaa? Reference...
ESP8266 GPIO control
Denis Kimcherenko
kaaproject.org© 2015 CyberVision, Inc. All rights reserved.
Agenda
➢ IoT messaging challenges➢ Why Kaa?➢ Reference architecture overview➢ Hands-on
➢ Sandbox setup➢ Application code walkthrough
➢ Android➢ ESP8266
➢ Live demo➢ Q&A
kaaproject.org© 2015 CyberVision, Inc. All rights reserved.
Messaging requirements/challenges
Must have:➢ Extendable message protocol➢ Security➢ Fault-tolerant➢ Scalability➢ Low latency
Nice to have:➢ Device platform independent➢ Built-in data structure validation➢ Low bandwidth support➢ Low footprint
kaaproject.org© 2015 CyberVision, Inc. All rights reserved.
➢ Feature-rich IoT middleware platform➢ 10 Kb RAM footprint (with C SDK)➢ Built-in transport security➢ Efficient data serialization➢ Horizontally scalable and fault tolerant➢ 100% open-source (Apache license 2.0)➢ Rapid application development using C / C++ / Java SDKs➢ Integration with popular hardware platforms
Why Kaa?
kaaproject.org© 2015 CyberVision, Inc. All rights reserved. All registered trademarks, service marks and logos are the property of their respective owners.
Reference architecture
Android
Kaa SDKClient
application
ESP8266
Kaa SDK Client application
Kaa cluster/sandbox
Kaa node
GPIO
Kaa node
LED 1 LED 2
Kaa Events
kaaproject.org© 2015 CyberVision, Inc. All rights reserved.
Message flow
Android ESP8266Kaa Others
Broadcast DeviceInfoRequest 1. Scan for availabledevices
Unicast DeviceInfoResponse2. RetrieveGPIO statusfrom board
3. ChangeGPIO statuson specific board
Unicast GpioToggleRequest
kaaproject.org© 2015 CyberVision, Inc. All rights reserved.
Development environment setup
Sample project repository: https://github.com/kaaproject/sample-apps/tree/master/gpiocontrol/source
Kaa Sandbox: http://www.kaaproject.org/download-kaa
ESP8266: http://docs.kaaproject.org/display/KAA/ESP8266
kaaproject.org© 2015 CyberVision, Inc. All rights reserved.
Denis [email protected]
kaaproject.orgcybervisiontech.com
THANK YOU FOR YOUR ATTENTION!ANY QUESTIONS?
@KaaIoT