Chat freely about anything...

User avatar
By reaper7
#5642
i tried espip/OTA

not OTA but ota
this is case sensitivity
try too check ota server from Your browser (type this address):
http://YOUROTASERVERIP/v1/device/rom/?action=download_rom&version=123.456&filename=user1.bin
if get binary file with some size (>0), server works ok.

this is my default.aspx for windows server - from one of posts from this forum
(578 Bytes) Downloaded 281 times

and index.php for lighttpd + php for openwrt
(703 Bytes) Downloaded 296 times


first and second server works ok

the second webrequest from Your post do not reqest file
for this query default.aspx (as You see) reply with this:
Code: Select all{"\"recommended_rom_version\": \"v0.19\", \"status\": 200, \"productRoms\": [{\"recommended\": 1, \"version\": \"v0.19\", \"life_cycle\": \"beta\"}, {\"recommended\": 1, \"version\": \"v0.18\", \"life_cycle\": \"beta\"}, {\"recommended\": 1, \"version\": \"v0.17\", \"life_cycle\": \"beta\"}]}"


You must carefully read default.aspx,
only request with parameter filename inside GET giving You binary file as answer
and for opposite, parameter is_format_simple inside GET request giving you simple json reply as I wrote above
User avatar
By alonewolfx2
#5667 thank you for your explanations. i understand and finally its working now. one more question. can we use your otaupdate.c with esp_iot_rtos sdk ?
User avatar
By reaper7
#5688
can we use your otaupdate.c with esp_iot_rtos sdk ?

I don't know

I'm still on 0.9.3 / 0.9.4 and I see that espressif release 0.9.5...I'm lost :)
I want to fully run smartlink and ota uppgrade on latest firmware
User avatar
By alonewolfx2
#5692
reaper7 wrote:
can we use your otaupdate.c with esp_iot_rtos sdk ?

I don't know

I'm still on 0.9.3 / 0.9.4 and I see that espressif release 0.9.5...I'm lost :)
I want to fully run smartlink and ota uppgrade on latest firmware

smartlink very usefull but its not safe for me.I have many curious neighbors.I saw 20 people on the router when i first smartlink try :)