GithubHelp home page GithubHelp logo

lamp's Introduction

RPi Plug

Introduction

Senario I

The threshold is defined by the user. If a person is present in the room and the lightning is less than user-defined threshold then some number of lamps are turned on!

Device Identification and Discovery

We use Kaa Endpoint Profile for device identification and discovery. Devices find by Location Info Schema, in this schema we store infomations about device room number and room owner.

Steps

  1. main.c contains source code for simple turn on and off of the lamp.
  2. Using KAA notification for turning the light on
  3. Created lamp application in the KAA server.
  4. Created mandatory notification topic for our lamp.
  5. Registered our notification topic in the endpoint groups.

How To ...

Some points about Kaa 0.8.1

How to change IP address configuration

You can change listening IP address of Kaa Node service with:

sudo sed -i 's/transport_bind_interface=.*/transport_bind_interface={IP ADDRESS}/' /etc/kaa-node/conf/kaa-node.properties
sudo service kaa-node restart

And you can change embedding IP address of Kaa Node service in auto generated SDK with:

sudo sed -i 's/transport_public_interface=.*/transport_public_interface={IP ADDRESS}/' /etc/kaa-node/conf/kaa-node.properties
sudo service kaa-node restart

Contributors

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.