Commit 9a3b8d6ca1390c642d051f4b3ac5a72d0379e0d1

Authored by Sieren
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.
README.md
... ... @@ -18,6 +18,7 @@ A simple and easy to use library for Philips Hue Lights
18 18 * Linux
19 19 * Windows
20 20 * MacOS
  21 +* Espressif ESP32 SDK & Arduino
21 22  
22 23 ## How to use
23 24 ### <a name="searchingBridges"></a>Searching for Bridges
... ...
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
... ...