Search found 2 matches

by kelly_he
Thu May 18, 2023 2:18 am
Forum: ESP-IDF 中文讨论版
Topic: 为什么要区分gui和resource的rest api列表?
Replies: 1
Views: 814

为什么要区分gui和resource的rest api列表?

我之前从来没有在esp32上实现web服务器,所以这个问题可能有点低级。 我在review esp-thread-br的web server实现的时候 ,看到代码里区分了用于gui响应和前端resource的rest api。 static httpd_uri_t s_resource_handlers[]; static httpd_uri_t s_web_gui_handlers[]; httpd_config_t config = HTTPD_DEFAULT_CONFIG(); config.max_uri_handlers = (sizeof(s_resource_handlers) ...
by kelly_he
Thu May 18, 2023 2:13 am
Forum: ESP-IDF
Topic: About the skill of http server
Replies: 0
Views: 641

About the skill of http server

I've never implemented an http server on esp32 before, so this is probably a silly question. I was looking at the web server component of esp-thread-br and didn't quite understand the intent of the following code. config.max_uri_handlers = (sizeof(s_resource_handlers) + sizeof(s_web_gui_handlers)) /...