Skip to content

feat: add ESP-IDF framework support#27

Open
ShaTie wants to merge 5 commits into
dudanov:mainfrom
ShaTie:main
Open

feat: add ESP-IDF framework support#27
ShaTie wants to merge 5 commits into
dudanov:mainfrom
ShaTie:main

Conversation

@ShaTie

@ShaTie ShaTie commented Dec 25, 2025

Copy link
Copy Markdown

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

@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
Author

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

@swoboda1337

Copy link
Copy Markdown

@esphbot review

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.

5 participants