Commit 9a3b8d6ca1390c642d051f4b3ac5a72d0379e0d1
Committed by
Moritz Wirger
1 parent
8f2c3ae1
Add ESP32 Support
ESP32 is using Lwip inside their ESP-IDF SDK (which also backs the Arduino SDK for ESP32). Lwip has a similar, if not same API as the Linux TCP/IP stack, therefore no additional changes other than Cmake-support needed to be made.
Showing
2 changed files
with
7 additions
and
0 deletions
README.md
hueplusplus/CMakeLists.txt
| ... | ... | @@ -26,6 +26,12 @@ if(UNIX) |
| 26 | 26 | ${CMAKE_CURRENT_SOURCE_DIR}/LinHttpHandler.cpp |
| 27 | 27 | ) |
| 28 | 28 | endif() |
| 29 | +if(ESP_PLATFORM) | |
| 30 | + set(hueplusplus_SOURCES | |
| 31 | + ${hueplusplus_SOURCES} | |
| 32 | + ${CMAKE_CURRENT_SOURCE_DIR}/LinHttpHandler.cpp | |
| 33 | + ) | |
| 34 | +endif() | |
| 29 | 35 | |
| 30 | 36 | |
| 31 | 37 | # Set global includes BEFORE adding any targets for legacy CMake versions | ... | ... |