23 lines
		
	
	
		
			659 B
		
	
	
	
		
			Markdown
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			659 B
		
	
	
	
		
			Markdown
		
	
	
		
			Executable File
		
	
	
	
	
| # ESP32 device
 | |
| 
 | |
| ESP32 client device, using `W32-ETH01` device
 | |
| 
 | |
| ## Pins for relays
 | |
| The pins are the following (in the order of definition): 4, 14, 15, 2
 | |
| 
 | |
| **WARNING!** The Pin 2 MUST be disconnect to reflash the card!
 | |
| 
 | |
| ## Some commands
 | |
| 
 | |
| Create a new firmware build:
 | |
| 
 | |
| ```bash
 | |
| idf.py build
 | |
| ```
 | |
| 
 | |
| 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)\"}"
 | |
| ``` |