MenuConfig has no ComponentConfig->WebSockets

GvTardy
Posts: 23
Joined: Tue Jan 01, 2019 3:26 pm

MenuConfig has no ComponentConfig->WebSockets

Postby GvTardy » Wed Apr 29, 2020 1:03 pm

Hi,

last week I installed the ESP-IDF-Extension for VSC in Windows10. It works great! Thank you very much!

I ran into one problem though: when trying to use websockets I could not find the entry ComponentConfig->WebSockets in the project's menuconfig. Some entries seems to be missing in my menuconfig.

As I installed the whole toolchain (ESP-tools and ESP-IDF) new -via windows installer-, so I should have the latest version.

The menuconfig I loaded with the example shows the missing entries, the example project compiles fine.

So my question is: what do I have to do, to get a complete menuconfig into my project?
- just copy it?
- update the IDF? (it should be up to date)
- ...

I also do not understand where/how the menuconfig is created when I start a new project. Would someone please take some time and explain this?

Thank you very much
good health to all
Georg

User avatar
ESP_Roland
Posts: 265
Joined: Tue Oct 09, 2018 10:28 am

Re: MenuConfig has no ComponentConfig->WebSockets

Postby ESP_Roland » Wed Apr 29, 2020 2:13 pm

Hi Georg,

Can you please specify which example project are you trying to use?

The project configuration system is described here: https://docs.espressif.com/projects/esp ... onfig.html

Menuconfig takes the options from ESP-IDF components and from the given project. The values of the options for the project are read from and written to "sdkconfig" file in the project directory (the first run of menuconfig creates the file).

Not all options show up in menuconfig, e.g. not supported or disabled options might be hidden. Which websocket option do you want to enable? The list of options can be found on the page I've just linked.

GvTardy
Posts: 23
Joined: Tue Jan 01, 2019 3:26 pm

Re: MenuConfig has no ComponentConfig->WebSockets

Postby GvTardy » Wed Apr 29, 2020 3:40 pm

Hi ESP_Roland,

thank you for the link and the explanation.

In the example the menuconfig has the following options:
menuconfig_ws.jpg
menuconfig_ws.jpg (175.08 KiB) Viewed 4964 times
my menuconfig does not have these items:
menuconfig_no_ws.jpg
menuconfig_no_ws.jpg (170.65 KiB) Viewed 4964 times
Greetings
Georg

GvTardy
Posts: 23
Joined: Tue Jan 01, 2019 3:26 pm

Re: MenuConfig has no ComponentConfig->WebSockets

Postby GvTardy » Wed Apr 29, 2020 6:57 pm

Dear All,

I found the issue: these additional entries are defined in the Kconfig file in the components folder...

So if this ever happenes to you, check kconfig as well.

kconfig:

Code: Select all

menu "WebSocket Server"

config WEBSOCKET_SERVER_MAX_CLIENTS
  int "Max clients"
  range 1 1000
  default 20
  help
    Maximum number of clients that the WebSocket
    server can handle at a time.

config WEBSOCKET_SERVER_QUEUE_SIZE
  int "Queue read size"
  range 1 100
  default 10
  help
    Size of the queue to deal with incoming
    WebSocket messages. The queue holds the
    connection, not the actual message.

.....   
    
 endmenu
I find this a nice way to integrate configurations to your own components files

I was not aware that this was that easy!

Many greetings
Georg

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], KaosESP32 and 181 guests