Mantis: Add upload_wifi target to upload firmware

This commit is contained in:
Julian Oes
2021-09-27 14:49:51 +02:00
committed by Daniel Agar
parent 185e4cfd48
commit de1849167d
2 changed files with 57 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -e
PX4_BINARY_FILE="$1"
echo "uploading: $PX4_BINARY_FILE"
PX4_BINARY_FILE_SIZE=$(stat -c%s "$PX4_BINARY_FILE")
curl -v -F "image=@$PX4_BINARY_FILE" -H "Expect:" -H "File-Size:$PX4_BINARY_FILE_SIZE" http://192.168.42.1/cgi-bin/upload