@ -0,0 +1,10 @@
### How to upload
This is to upload the web configurator to the device. In order to serve the html pages correctly.
Below is the command to push the files to the ESP32 once is connected to the device via WiFi.
for i in $(ls gzip/*); do echo "Pushing [$i]...."; ./upload.py http://192.168.1.1/webupload $i; done
### How to delete
To delete it is easy:
curl -s http://192.168.1.1/erase?filename=the_filename
@ -0,0 +1,15 @@
#!/usr/bin/python3
import requests
import sys
### print (sys.argv)
### print(len(sys.argv))
if len(sys.argv) < 3:
print("Invalid parameters\n")
exit
filename = sys.argv[2]
url = sys.argv[1]
files = {'file': open(filename, 'rb')}
final_resp = requests.post(url, files=files)