Why ESP-IDF is always way behind ARDUINO environment

Zeni241
Posts: 85
Joined: Tue Nov 20, 2018 4:28 am

Why ESP-IDF is always way behind ARDUINO environment

Postby Zeni241 » Mon Feb 18, 2019 8:36 am

I was surprised to find out that MQTT is not available in current stable version 3.1.2 (or 3.1.3) of ESP-IDF , though it is available in latest version.
When we can expect to have MQTT in stable version?
What are prerelease versions? Can I use them safely in production?
I used MQTT in ARDUINO environment months ago. I wonder why ESP-IDF is always way behind ARDUINO environment. Is ARDUINO environment is the preferred one for ESPRESSIF?
Is there some guide to use MQTT with 3.1.2. I am interested in stable version as this is the version used by PLATFORMIO, and I don’t want to leave it just because of MQTT.

ESP_cermak
Posts: 69
Joined: Thu Nov 01, 2018 8:32 am

Re: Why ESP-IDF is always way behind ARDUINO environment

Postby ESP_cermak » Mon Feb 18, 2019 9:38 am

Hi Zeni241,

About using mqtt with idf prior to 3.2:
You can follow the instructions here https://github.com/espressif/esp-mqtt/t ... OR_IDF_3.1 and checkout the tag `ESP-MQTT_FOR_IDF_3.1`.
This version however has some issues, which have been fixed for latest idf. MQTT was added to idf in 3.2, so that once 3.2 is release that will be the stable idf with mqtt.

Zeni241
Posts: 85
Joined: Tue Nov 20, 2018 4:28 am

Re: Why ESP-IDF is always way behind ARDUINO environment

Postby Zeni241 » Mon Feb 18, 2019 10:30 am

Thanks a lot for your quick response ESP_cermak. I think I will use 3.2 branch as I hope it will be released sometime soon :? . Is 3.2 is the same as master branch? I hope at the time of release, it will have full working MQTT, HTTP SERVER and all that is available in arduino environment and we are so used to those libraries :lol: .

ESP_cermak
Posts: 69
Joined: Thu Nov 01, 2018 8:32 am

Re: Why ESP-IDF is always way behind ARDUINO environment

Postby ESP_cermak » Mon Feb 18, 2019 12:15 pm

No 3.2 is not the same as master! Please see here https://github.com/espressif/esp-idf/tree/release/v3.2

Zeni241
Posts: 85
Joined: Tue Nov 20, 2018 4:28 am

Re: Why ESP-IDF is always way behind ARDUINO environment

Postby Zeni241 » Mon Feb 18, 2019 1:13 pm

Thank you. Any tentative date for release of 3.2?

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Why ESP-IDF is always way behind ARDUINO environment

Postby ESP_Angus » Mon Feb 18, 2019 10:16 pm

In addition to the useful links Cermak has given, there's an explanation of the different IDF branches (master, stable releases, release branches like release/v3.2) here:
https://docs.espressif.com/projects/esp ... sions.html

We're currently in early stages of testing ESP-IDF v3.2 but we don't have a release date, yet.

(The short answer to the general question is that Arduino currently tracks the IDF master branch, not the stable releases. Arduino for ESP32 is not tested as thoroughly as IDF releases.)

Zeni241
Posts: 85
Joined: Tue Nov 20, 2018 4:28 am

Re: Why ESP-IDF is always way behind ARDUINO environment

Postby Zeni241 » Wed Feb 20, 2019 3:40 am

Thanks ESP_Angus.
For the benefit of any one following this thread, I copy lines from pages you referred.
If a required feature is not yet available in a stable release, but you don’t want to use the master branch, it is possible to check out a pre-release version or a release branch.
In stability terms, using a release branch is part-way between using master branch and only using stable releases. A release branch is always beta quality or better, and receives bug fixes before they appear in each stable release.

Who is online

Users browsing this forum: No registered users and 103 guests