Can set device desired version
This commit is contained in:
		@@ -14,4 +14,5 @@ Upload firmware to central backend, in dev mode:
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
curl -k -X POST  https://localhost:8443/web_api/ota/Wt32-Eth01/$(cat version.txt) --form firmware="@build/main.bin"
 | 
			
		||||
curl -k -X POST  https://localhost:8443/web_api/ota/set_desired_version --header "Content-Type: application/json" --data "{\"platform\": \"Wt32-Eth01\", \"version\": \"$(cat version.txt)\"}"
 | 
			
		||||
```
 | 
			
		||||
							
								
								
									
										5
									
								
								esp32_device/build_upload_dev.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										5
									
								
								esp32_device/build_upload_dev.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
idf.py build && \
 | 
			
		||||
    curl -k -X POST  https://localhost:8443/web_api/ota/Wt32-Eth01/$(cat version.txt) --form firmware="@build/main.bin" && \
 | 
			
		||||
    curl -k -X POST  https://localhost:8443/web_api/ota/set_desired_version --header "Content-Type: application/json" --data "{\"platform\": \"Wt32-Eth01\", \"version\": \"$(cat version.txt)\"}"
 | 
			
		||||
		Reference in New Issue
	
	Block a user