cangrow.sh add help text
This commit is contained in:
parent
1d667bd665
commit
bacb48a918
1 changed files with 4 additions and 4 deletions
|
@ -72,7 +72,7 @@ case $1 in
|
||||||
;;
|
;;
|
||||||
b|build)
|
b|build)
|
||||||
check_acli
|
check_acli
|
||||||
echo "building firmware $VER $BUILD, target dir: $(pwd)/build/"
|
echo ":: Building firmware $VER $BUILD, target dir: $(pwd)/build/"
|
||||||
test -d build || mkdir build
|
test -d build || mkdir build
|
||||||
echo "/* CanGrow_Version.h gets generated from cangrow.sh */
|
echo "/* CanGrow_Version.h gets generated from cangrow.sh */
|
||||||
|
|
||||||
|
@ -84,17 +84,17 @@ const char* CanGrowBuild = \"${BUILD}\";
|
||||||
;;
|
;;
|
||||||
u|upload)
|
u|upload)
|
||||||
check_acli
|
check_acli
|
||||||
echo "uploading to $TTY"
|
echo ":: Uploading to $TTY"
|
||||||
${ACLI_CMD} --no-color compile -v -b esp8266:esp8266:d1_mini_clone -u -p $TTY "Arduino/CanGrow/CanGrow.ino"
|
${ACLI_CMD} --no-color compile -v -b esp8266:esp8266:d1_mini_clone -u -p $TTY "Arduino/CanGrow/CanGrow.ino"
|
||||||
;;
|
;;
|
||||||
w|webupload)
|
w|webupload)
|
||||||
echo "uploading to $IP"
|
echo ":: Uploading to $IP"
|
||||||
curl -v http://$IP/system/applyUpdate -X POST -H 'Content-Type: multipart/form-data' -F "file=@$(pwd)/build/CanGrow.ino.bin"
|
curl -v http://$IP/system/applyUpdate -X POST -H 'Content-Type: multipart/form-data' -F "file=@$(pwd)/build/CanGrow.ino.bin"
|
||||||
echo
|
echo
|
||||||
;;
|
;;
|
||||||
m|mon|monitor)
|
m|mon|monitor)
|
||||||
check_acli
|
check_acli
|
||||||
echo "open monitor $TTY"
|
echo ":: Open serial monitor $TTY"
|
||||||
${ACLI_CMD} monitor -c baudrate=115200 -p $TTY
|
${ACLI_CMD} monitor -c baudrate=115200 -p $TTY
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Reference in a new issue