Firmware for xatLabs Caracal WiFi Module
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
500 B

Prepare the SPIFFS image for publishing
- Set version number in config.json
- Generate spiffs.version file
- Build SPIFFS image
import json
import os
import time
with open("data/config.json", 'r') as f:
data = json.load(f)
data['SPVersion'] = int(time.strftime("%y%m%d%H%M"))
with open("data/config.json", 'w') as f:
json.dump(data, f)
with open("spiffs.version", 'w') as f:
os.system("mkspiffs -c data -p 256 -b 8192 -s 1028096 spiffs.bin")