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
MenuConfig has no ComponentConfig->WebSockets
- ESP_Roland
- Posts: 265
- Joined: Tue Oct 09, 2018 10:28 am
Re: MenuConfig has no ComponentConfig->WebSockets
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.
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.
Re: MenuConfig has no ComponentConfig->WebSockets
Hi ESP_Roland,
thank you for the link and the explanation.
In the example the menuconfig has the following options: my menuconfig does not have these items: Greetings
Georg
thank you for the link and the explanation.
In the example the menuconfig has the following options: my menuconfig does not have these items: Greetings
Georg
Re: MenuConfig has no ComponentConfig->WebSockets
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:
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
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 was not aware that this was that easy!
Many greetings
Georg
Who is online
Users browsing this forum: Majestic-12 [Bot] and 63 guests