A simple app for the Cordova OCF plugin, that interfaces with a smart home prototype.
This app uses the cordova-plugin-ocf and therefore the Iotivity project to control a Smart Home prototype.
You will need:
- nodejs, v5 or above
- The Android SDK, version 21 or above
- And ARM or x86 Android device (the emulator won't do)
sudo npm install -g cordova grunt-cli bower
npm install
bower install
grunt platform:add:android
grunt run
Please refer to here to learn about detailed steps.
This demo currently supports the following sensors : Button, Buzzer, Mini Fan, Gas(MQ2), Ambient Light, Led, Motion, RGB Led, Solor, Switch(P) and Temperature
.
After the discovery process, this demo can read and control the status of the discovered resources.