Shabirmean
b4665f36bf
|
9 years ago | |
---|---|---|
.. | ||
src | 9 years ago | |
README.md | 9 years ago | |
RaspberryService.sh | 9 years ago | |
deviceConfig.properties | 9 years ago | |
org.eclipse.paho.mqtt.python.tar | 9 years ago | |
sketch.properties | 9 years ago | |
startService.sh | 9 years ago | |
testAgent.sh | 9 years ago |
README.md
Copyright and license
Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. WSO2 Inc. licenses this file to you under the Apache License,Version 2.0 (the "License"); you may not use this file except in compliance with the License.You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
--------------
testAgent.sh
--------------
This script is used to run this service in a testing environment. It can be run on a real Raspberry Pi device or in a virtual environment.
To run: sudo ./testAgent.sh
and follow the instructions.
-------------------
startService.sh
-------------------
After testing, this script can be used to deploy this application as a service on Raspberry Pi which will get loaded during boot up process.
create a service:
sudo ./startService.sh
get current state of the service:
sudo service RaspberryService.sh status
start service:
sudo service RaspberryService.sh start
stop service:
sudo service RaspberryService.sh stop
restart service:
sudo service RaspberryService.sh restart