Skip to content

feat: add ESP-IDF framework support - #27

Merged
dudanov merged 5 commits into
dudanov:mainfrom
ShaTie:main
Aug 2, 2026
Merged

dudanov merged 5 commits into
dudanov:mainfrom
ShaTie:main

Conversation

@ShaTie

@ShaTie ShaTie commented Dec 25, 2025

Copy link
Copy Markdown
Contributor

Add Platform.h abstraction layer enabling ESP-IDF framework alongside Arduino:

  • millis(), random(), Stream, IPAddress implementations for ESP-IDF
  • ESP-IDF WiFi functions using esp_wifi.h and esp_netif.h
  • PROGMEM/pgm_read_byte fallback macros for ESP-IDF
  • Conditional __FlashStringHelper in Log.h

Tested on ESP32-C3.

Add Platform.h abstraction layer enabling ESP-IDF alongside Arduino:
- millis(), random(), Stream, IPAddress implementations for ESP-IDF
- ESP-IDF WiFi functions using esp_wifi.h and esp_netif.h
- PROGMEM/pgm_read_byte fallback macros for ESP-IDF
- Conditional __FlashStringHelper in Log.h

Enables use with ESPHome's ESP-IDF backend for MQTT TLS support.
Tested on ESP32-C3.

@toiletbril toiletbril left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Gormo

Gormo commented Feb 7, 2026

Copy link
Copy Markdown

Also tested it successfully on ESP32-C6.

@swoboda1337

Copy link
Copy Markdown
Contributor

@dudanov thoughts on getting this merged? Thanks!

@dudanov

dudanov commented Mar 11, 2026

Copy link
Copy Markdown
Owner

Hi all. I've added simple CI build tests in #30.
@ShaTie please make an empty commit to run them.

@ShaTie
ShaTie requested a review from swoboda1337 March 11, 2026 22:09
Comment thread include/Helpers/Platform.h Outdated
ShaTie and others added 2 commits March 19, 2026 13:41
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com>
@ShaTie

ShaTie commented Apr 9, 2026

Copy link
Copy Markdown
Contributor Author

@swoboda1337 @dudanov What else do I need to do to get the pr merged?

@swoboda1337

Copy link
Copy Markdown
Contributor

@esphbot review

@cbossaers

cbossaers commented Aug 2, 2026

Copy link
Copy Markdown

Can we please get this merged if there's no conflicts? @dudanov

@swoboda1337

Copy link
Copy Markdown
Contributor

Can we please get this merged if there's no conflicts?

Yeah it would be good to get idf support

@swoboda1337

Copy link
Copy Markdown
Contributor

Note I opened a small follow up PR, see #45, if that could get merged in the next week or so before the next ESPHome release that would be helpful. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants