Closed doom369 closed 7 years ago
@vshymanskyy added upload handler. You can upload file with:
curl \
-F "file=@/home/user/test.txt" \
host/upload
instead of host
please use QA server host. Request will return path to file, like:
/static/ota/FUp_1014398055299680179_upload.txt
You need to put this file name during ota start:
GET http://host/{token}/ota/start?fileName=FUp_1014398055299680179_upload.txt
I just made the basic version of OTA on server-side. There is how it is working right now:
Next request initiates firmware update for specific hardware (in case it is online only):
GET http://host/{token}/ota/start
you can also add query param
fileName
.As result of above request you'll get
BLYNK_INTERNAL
command with next body on hardware:ota http://host/static/ota/firmware_ota.bin
where space is nil separator.
Now you can perform regular GET request to get the firmware file. I need a bin file from you to make test.