arduino to IDF newbie help managing mulitple apps inline

chegewara
Posts: 2364
Joined: Wed Jun 14, 2017 9:00 pm

Re: arduino to IDF newbie help managing mulitple apps inline

Postby chegewara » Sun Mar 24, 2024 10:55 pm

Hi,
i am using many techniques to keep memory low. For example i am using my own wifi library for 2 reasons:
- i can keep control over wifi init settings, which include static and dynamic buffers
- it is much easier to me to migrate into esp-idf if needed

This is my current wifi setup, which may impact wifi throughput , but is satisfactory for my client needs:

Code: Select all

    wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
    cfg.static_tx_buf_num = 4;
    cfg.dynamic_tx_buf_num = 16;
    cfg.tx_buf_type = 1; // 0 - static, 1 - dynamic
    cfg.cache_tx_buf_num = 4;  // can't be zero!
    cfg.static_rx_buf_num = 4;
    cfg.dynamic_rx_buf_num = 16;
Im not saying its the best setup, or even it is better than arduino has, just it is using less memory than arduino library and suits my needs.

Who is online

Users browsing this forum: Google [Bot], jesper and 87 guests