From ad9e42c3d9c4d0747c13005e2a6d56c8e9f3caa4 Mon Sep 17 00:00:00 2001 From: Shabirmean Date: Wed, 11 May 2016 11:25:53 +0530 Subject: [PATCH] moving down 'paho-library' installation to enable it in both virtual & real mode --- .../src/main/resources/agent/testAgent.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/features/iot-plugins-feature/raspberrypi-plugin-feature/org.wso2.carbon.device.mgt.iot.raspberrypi.feature/src/main/resources/agent/testAgent.sh b/features/iot-plugins-feature/raspberrypi-plugin-feature/org.wso2.carbon.device.mgt.iot.raspberrypi.feature/src/main/resources/agent/testAgent.sh index 4ac9112c0..9a11ab485 100644 --- a/features/iot-plugins-feature/raspberrypi-plugin-feature/org.wso2.carbon.device.mgt.iot.raspberrypi.feature/src/main/resources/agent/testAgent.sh +++ b/features/iot-plugins-feature/raspberrypi-plugin-feature/org.wso2.carbon.device.mgt.iot.raspberrypi.feature/src/main/resources/agent/testAgent.sh @@ -107,14 +107,15 @@ if [ "$mode" = "N" ]; then sudo python setup.py install cd .. # ----------------------------------------------------- - # Install Paho-MQTT-Library for MQTT Communication - git clone https://github.com/eclipse/paho.mqtt.python.git - cd ./paho.mqtt.python - sudo python setup.py install - cd .. - # ----------------------------------------------------- fi +# Install Paho-MQTT-Library for MQTT Communication +git clone https://github.com/eclipse/paho.mqtt.python.git +cd ./paho.mqtt.python +sudo python setup.py install +cd .. +# ----------------------------------------------------- + chmod +x ./src/RaspberryAgent.py sudo python ./src/RaspberryAgent.py -i $input -m $mode