Skip to content

Commit

Permalink
enable usage as IDF component
Browse files Browse the repository at this point in the history
  • Loading branch information
bertmelis committed Feb 11, 2025
1 parent 6af1b33 commit 9bacaf3
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
16 changes: 16 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
set(COMPONENT_SRCDIRS
"src" "src/Datapoint" "src/GWG" "src/VS1" "src/VS2" "src/Interface"
)

set(COMPONENT_ADD_INCLUDEDIRS
"src" "src/Datapoint" "src/GWG" "src/VS1" "src/VS2" "src/Interface"
)

set(COMPONENT_REQUIRES
"arduino-esp32"
)

register_component()

target_compile_definitions(${COMPONENT_TARGET} PUBLIC -DESP32)
target_compile_options(${COMPONENT_TARGET} PRIVATE -fno-rtti)
3 changes: 3 additions & 0 deletions component.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
COMPONENT_ADD_INCLUDEDIRS := src
COMPONENT_SRCDIRS := src
CXXFLAGS += -fno-rtti
5 changes: 5 additions & 0 deletions idf_component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dependencies:
arduino-esp32: ">=3"
description: Communicate with Viessmann boilers using the optolink for ESP8266 and ESP32
url: https://github.com/bertmelis/VitoWiFi
version: 3.0.0

0 comments on commit 9bacaf3

Please sign in to comment.