24#define APP_CONFIG_DMX_PORT_COUNT 2
29#define APP_CONFIG_INVALID_UNIVERSE 0xFFFF
83#define APP_CONFIG_DEFAULT_CONNECTION \
84 APP_CONFIG_CONN_WIFI_AP
85#define APP_CONFIG_DEFAULT_IP_METHOD \
87#define APP_CONFIG_DEFAULT_LED_BRIGHTNESS \
90#define APP_CONFIG_DEFAULT_STA_SSID ""
91#define APP_CONFIG_DEFAULT_STA_PASSWORD \
95#define APP_CONFIG_DEFAULT_AP_PASSWORD \
97#define APP_CONFIG_DEFAULT_AP_SSID_PREFIX \
100#define APP_CONFIG_DEFAULT_DMX_DIR \
101 APP_CONFIG_DIR_OUTPUT
102#define APP_CONFIG_DEFAULT_START_UNIVERSE \
105#define APP_CONFIG_DEFAULT_SINGLE_CLICK_ACT \
106 APP_BUTTON_ACTION_TOGGLE_LED
107#define APP_CONFIG_DEFAULT_DOUBLE_CLICK_ACT \
108 APP_BUTTON_ACTION_NONE
109#define APP_CONFIG_DEFAULT_MULTI_CLICK_ACT \
110 APP_BUTTON_ACTION_REBOOT
bool config_set_led_brightness(uint8_t brightness)
Sets the status LED brightness level in RAM.
config_button_action_t
Actions that can be dynamically assigned to button events.
@ APP_BUTTON_ACTION_REBOOT
@ APP_BUTTON_ACTION_TOGGLE_LED
esp_err_t config_reset_defaults(void)
Resets all configuration settings back to factory defaults.
config_ip_method_t config_get_ip_method(void)
Gets the current IP allocation method.
bool config_set_ip_method(config_ip_method_t method)
Sets the IP assignment method in RAM.
uint8_t config_get_led_brightness(void)
Gets the current status LED brightness level.
bool config_set_wifi_ap_config(const wifi_config_t *src)
Sets the Wi-Fi Access Point mode configuration in RAM.
config_connection_t config_get_connection(void)
Gets the current network connection type.
config_direction_t config_get_dmx_direction(uint8_t port_index)
Gets the data direction for a specific port.
bool config_set_dmx_universe(uint8_t port_index, uint16_t universe)
Sets the DMX universe for a specific port in RAM.
uint16_t config_get_dmx_universe(uint8_t port_index)
Gets the configured DMX universe for a specific port.
void config_get_wifi_sta_config(wifi_config_t *dest)
Gets the Wi-Fi Station mode configuration.
config_connection_t
Network connection medium types.
@ APP_CONFIG_CONN_WIFI_STA
@ APP_CONFIG_CONN_ETHERNET
@ APP_CONFIG_CONN_WIFI_AP
app_button_event_t
Supported button event types that can be configured in the system.
@ APP_BUTTON_EVENT_LONG_HOLD
@ APP_BUTTON_EVENT_SINGLE_CLICK
@ APP_BUTTON_EVENT_MULTIPLE_CLICK
@ APP_BUTTON_EVENT_DOUBLE_CLICK
bool config_set_dmx_direction(uint8_t port_index, config_direction_t direction)
Sets the data direction for a specific port in RAM.
config_direction_t
Data direction for dmx-port.
config_button_action_t config_get_button_action(app_button_event_t event)
Retrieves the action assigned to a specific button event.
void config_get_wifi_ap_config(wifi_config_t *dest)
Gets the Wi-Fi Access Point mode configuration.
config_ip_method_t
IP assignment method configurations.
esp_err_t config_init(void)
Initializes the configuration component.
bool config_set_connection(config_connection_t conn)
Sets the network connection type in RAM.
bool config_set_wifi_sta_config(const wifi_config_t *src)
Sets the Wi-Fi Station mode configuration in RAM.
esp_err_t config_save(void)
Flushes all staged RAM changes permanently to the non-volatile storage.
bool config_set_button_action(app_button_event_t event, config_button_action_t action)
Assigns a new action to a specific button event in RAM.