mirror of
				https://github.com/thelsing/knx.git
				synced 2025-10-26 10:26:25 +01:00 
			
		
		
		
	| .. | ||
| components/knx | ||
| main | ||
| CMakeLists.txt | ||
| README.md | ||
KNX Demo DIY (ESP-IDF 5.x Native)
This is a native ESP-IDF 5.x example project for KNX, based on the Arduino knx-demo-diy example but using the new Esp32IdfPlatform for direct ESP-IDF support.
Features
- Uses the native ESP-IDF APIs (no Arduino layer)
- Demonstrates KNX stack integration on ESP32
- Based on the logic of the Arduino knx-demo-diy.inoexample
How to Build
- Install ESP-IDF 5.x
- Open a terminal in this directory (examples/knx-demo-esp-idf)
- Run:
 (Replaceidf.py set-target esp32 idf.py build idf.py -p /dev/ttyUSB0 flash monitor/dev/ttyUSB0with your ESP32 serial port)
Project Structure
- main.c— Main application file (C++ code, but named .c for ESP-IDF compatibility)
- CMakeLists.txt— ESP-IDF build configuration
Notes
- This project uses the new Esp32IdfPlatformclass for native ESP-IDF support.
- You may need to adapt pin numbers and KNX configuration for your hardware.
- The logic is adapted from the Arduino knx-demo-diy.inoexample.