Closed philbarclay closed 5 years ago
I've already fixed this in the DallasTemperature library: https://github.com/milesburton/Arduino-Temperature-Control-Library/pull/75 You might need to use the git version though since I don't think it's released.
The problem was in that library using #define constants that are too general.
Confirmed. Changing to using the github version of DallasTemperature
rather than whatever version platformio uses fixes this
This works with either order of includes:
[env:esp12e]
platform = espressif8266
board = esp12e
framework = arduino
lib_deps =
# DallasTemperature
https://github.com/milesburton/Arduino-Temperature-Control-Library.git
https://github.com/marvinroger/homie-esp8266.git#develop
Compile success (using platformio) when using homie-esp8266 with the DallasTemperature library is dependant on the order of header file includes. If
Homie.h
comes first it compiles fine, ifDallasTemperature.h
it fails due to a conflict with the symbol/macroCONFIGURATION
This works:
This fails:
with output:
Compiled using platformio with config file:
Is this expected? I was under the impression the include order shouldn't matter?