Open semaf opened 8 years ago
Hi semaf,
Thank you for issuing first report on this repository :smile:
Please post the compilation log so I can check where the problem is. What version of ESP8266 core you are using? What is your version of Arduino IDE?
Krzysztof
Well there are a lot of Errors due the DHT, RF433, Emoncms etc.. I would say you should make a clean Sketch without additions of RF433 or anything else.. Just DHT22 + ESP8266 + OPENHAB + MQTT and that would be clean enough.
Errors: #1 just compiled:
OnlineHumidifier-openHAB:31: error: 'D2' was not declared in this scope
OnlineHumidifier-openHAB:44: error: 'D1' was not declared in this scope
OnlineHumidifier-openHAB.ino:45:37: note: in expansion of macro 'RF433_TR_PIN'
'D2' was not declared in this scope
OnlineHumidifier-openHAB.cpp.o: In function `MQTTkeepAlive()':
C:\Program Files (x86)\Arduino/OnlineHumidifier-openHAB.ino:142: undefined reference to `setupWiFi()'
C:\Program Files (x86)\Arduino/OnlineHumidifier-openHAB.ino:142: undefined reference to `setupWebserver()'
C:\Program Files (x86)\Arduino/OnlineHumidifier-openHAB.ino:142: undefined reference to `setupOTA()'
OnlineHumidifier-openHAB.cpp.o: In function `MQTTpublishData()':
C:\Program Files (x86)\Arduino/OnlineHumidifier-openHAB.ino:143: undefined reference to `setupWiFi()'
OnlineHumidifier-openHAB.cpp.o: In function `HardwareSerial::begin(unsigned long)':
C:\Program Files (x86)\Arduino/OnlineHumidifier-openHAB.ino:143: undefined reference to `setupWebserver()'
C:\Program Files (x86)\Arduino/OnlineHumidifier-openHAB.ino:143: undefined reference to `setupOTA()'
OnlineHumidifier-openHAB.cpp.o: In function `swap<void (*)(const std::_Any_data&, const MQTT::Publish&)>':
c:\users\michi\appdata\roaming\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits/move.h:177: undefined reference to `measureHumidity()'
OnlineHumidifier-openHAB.cpp.o: In function `swap<std::_Any_data>':
c:\users\michi\appdata\roaming\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits/move.h:176: undefined reference to `executeHumidityControl()'
OnlineHumidifier-openHAB.cpp.o: In function `swap<void (*)(const std::_Any_data&, const MQTT::Publish&)>':
c:\users\michi\appdata\roaming\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits/move.h:176: undefined reference to `sendDataToEmoncms()'
OnlineHumidifier-openHAB.cpp.o: In function `loop':
C:\Program Files (x86)\Arduino/OnlineHumidifier-openHAB.ino:186: undefined reference to `measureHumidity()'
C:\Program Files (x86)\Arduino/OnlineHumidifier-openHAB.ino:188: undefined reference to `executeHumidityControl()'
C:\Program Files (x86)\Arduino/OnlineHumidifier-openHAB.ino:191: undefined reference to `sendDataToEmoncms()'
collect2.exe: error: ld returned 1 exit status
Error compiling.
If I begin to clean all Errors it will take more time than to write a new one :dancer: Thats why a clean version would be great :)
I see your point and thank you for taking time to document it. This is a good opportunity to expand this repository with another section (Just DHT22 + ESP8266 + OPENHAB + MQTT).
Krzysztof
A delay is also fine. Mostly Humdity and Temperature Sensors are never going to be turned off but adding a delay would be enough.
Hey,
There are missing some libraries and compiling has problems. Would you fix that?
cheers