AoLab / Lamp

Kaa based RPi Agent

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Kaa based RPi Agent


Languages

Language:C 95.5%Language:CMake 3.5%Language:C++ 1.0%