Skip to content

Hooks

Some hooks are available, they are triggered on some events.

The hooks is a define which contain a set of commands that are executed when an event is triggered.

You can customize the hooks to fit your needs in configuration.h

NameDescription
ESP_GOT_IP_HOOKTriggered when ESP got an IP address, executes a command
ESP_GOT_DATE_TIME_HOOKTriggered when ESP got a datetime, executes a command
ESP_AUTOSTART_SCRIPTTriggered when ESP starts, executes a bunch of commands separated by ;
ESP_AUTOSTART_SCRIPT_FILETriggered when ESP starts, executes commands from a file
  • #define ESP_GOT_IP_HOOK "[ESP212]IP:%ESP_IP% It will display IP address to printer screen when ESP got an IP address

  • #define ESP_GOT_DATE_TIME_HOOK "[ESP212]Date:%ESP_DATETIME%" It will display datetime to printer screen when ESP got a datetime