include\user_config_override-template.h lists the options you have to customize your build. Settings applied here will act as factory defaults in the firmware. Check the file for the self-explanatory options. Some of the available possibilities are:
- WiFi Settings
- MQTT Settings
- OTA Server Settings
- Syslog Settings
- Interface Language
- Web interface coloring
- Built-in fonts choice
- GPIO Templates
- Services startup
Copy it to
include\user_config_override.h and change the settins per your needs.
platformio_override.ini to ensure that the config overrides are taken into account during the compilation process.
It is possible to include your own custom code in the
src/custom directory. If you enable
#define HASP_USE_CUSTOM 1 in your
include\user_config_override.h, you can start adding code by copying the template files as
my_custom.cpp. This will add the
custom\my_custom.h header to openHASP compilation and call the defined functions from the main loop.