revk / ESP32-RevK

My tools for ESP32 projects under ESP-IDF
GNU General Public License v3.0
7 stars 6 forks source link

revk: Introduce revk_num_web_handlers() #21

Closed Sonic-Amiga closed 1 year ago

Sonic-Amiga commented 1 year ago

Introduce a function, which returns number of handlers, used by revk_web_settings_add(). It it useful when integrating revk settings into an application's own web server. Provides a convenient way to keep max_uri_handlers up to date and avoiding de-sync.

Sonic-Amiga commented 1 year ago

Hi again! I de-synced num_handlers once again; and would like to propose this as a better solution. So that the app knows now many it needs and asks the lib how many it needs. No hardcoded assumption any more.