mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Add option to auto create other standard files
This commit is contained in:
parent
95b28eb222
commit
d0da272abb
@ -215,6 +215,15 @@ void filesystemSetupFiles()
|
||||
filesystem_write_file("/pages.jsonl", HASP_PAGES_JSONL);
|
||||
filesystem_write_file("/online.cmd", HASP_ONLINE_CMD);
|
||||
filesystem_write_file("/offline.cmd", HASP_OFFLINE_CMD);
|
||||
#ifdef HASP_BOOT_CMD
|
||||
filesystem_write_file("/boot.cmd", HASP_BOOT_CMD);
|
||||
#endif
|
||||
#ifdef HASP_MQTT_ON_CMD
|
||||
filesystem_write_file("/mqtt_on.cmd", HASP_MQTT_ON_CMD);
|
||||
#endif
|
||||
#ifdef HASP_MQTT_OFF_CMD
|
||||
filesystem_write_file("/mqtt_off.cmd", HASP_MQTT_OFF_CMD);
|
||||
#endif
|
||||
}
|
||||
|
||||
bool filesystemSetup(void)
|
||||
@ -245,4 +254,4 @@ bool filesystemSetup(void)
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user