|
|
@ -43,6 +43,11 @@ for f in ./deviceConfig.properties; do
|
|
|
|
break
|
|
|
|
break
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#install mqtt dependency
|
|
|
|
|
|
|
|
git clone git://git.eclipse.org/gitroot/paho/org.eclipse.paho.mqtt.python.git
|
|
|
|
|
|
|
|
cd org.eclipse.paho.mqtt.python
|
|
|
|
|
|
|
|
sudo python setup.py install
|
|
|
|
|
|
|
|
|
|
|
|
cd $currentDir
|
|
|
|
cd $currentDir
|
|
|
|
|
|
|
|
|
|
|
|
#while true; do
|
|
|
|
#while true; do
|
|
|
@ -64,7 +69,6 @@ if [ $? -ne 0 ]; then
|
|
|
|
exit;
|
|
|
|
exit;
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "--------------------------------------------------------------------------"
|
|
|
|
echo "--------------------------------------------------------------------------"
|
|
|
|
echo "| Successfully Started "
|
|
|
|
echo "| Successfully Started "
|
|
|
|
echo "| -------------------------- "
|
|
|
|
echo "| -------------------------- "
|
|
|
|