Skip to content
This repository has been archived by the owner on Aug 6, 2018. It is now read-only.

AoLab/Lamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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