
1. qcloud has a great revolution, the protocol has been changed to implement data template, so the old TencentCloud_SDK developed by us will not work fine now(mqtt still works, but data template will not works fine for recently created product/devices). 2. I merge the official qlcoud sdk(include both the iot-hub and iot-explorer sdk) into the componet/conectivity to support new protocol of data template 3. iot-hub sdk, supply the fundamental iot protocol(like mqtt coap, etc.) iot-explorer sdk, supply the high level service like data template based on mqtt 4. To know how it works, see qcloud_iot_explorer_sdk_data_template、qcloud_iot_hub_sdk_mqtt example(keil project in board\TencentOS_tiny_EVB_MX_Plus\KEIL\qcloud_iot_explorer_sdk_data_template and board\TencentOS_tiny_EVB_MX_Plus\KEIL\qcloud_iot_hub_sdk_mqtt)
36 lines
817 B
Bash
36 lines
817 B
Bash
if [ "$#" -eq "0" ]; then
|
|
rm -rf output
|
|
rm -rf build
|
|
echo "Build all (SDK libs and samples)"
|
|
mkdir -p build
|
|
cd build
|
|
cmake ..
|
|
#-DSAMPLE_ONLY=OFF ..
|
|
make
|
|
exit
|
|
elif [ "$#" -eq "1" -a $1 == "samples" ]; then
|
|
if [ ! -d "output/release/bin" ]; then
|
|
rm -rf output/release/bin
|
|
elif [ ! -d "output/debug/bin" ]; then
|
|
rm -rf output/debug/bin
|
|
else
|
|
echo "Output folder not found! Please build SDK first"
|
|
exit
|
|
fi
|
|
rm -rf build
|
|
echo "Build samples only"
|
|
mkdir -p build
|
|
cd build
|
|
cmake -DSAMPLE_ONLY=ON ..
|
|
make
|
|
exit
|
|
elif [ "$#" -eq "1" -a $1 == "clean" ]; then
|
|
echo "Clean all (SDK lib and samples)"
|
|
rm -rf output
|
|
rm -rf build
|
|
exit
|
|
else
|
|
echo "Usage: "$0" <null for all/samples/clean>"
|
|
exit
|
|
fi
|