A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By froggy
#19037 Thanks for that, but a couple of points.
i think you left your private key in the file
Also when I try and compile i get the following error, and havent a clue what the roblem is.
I downladed a generic DallasTemperature_h

ESP8266_DS18B20.cpp.o: In function `sendReadings(float, float)':
ESP8266_DS18B20.cpp:(.text+0x2f4): undefined reference to `DallasTemperature::begin()'
ESP8266_DS18B20.cpp:(.text+0x2f8): undefined reference to `DallasTemperature::requestTemperatures()'
ESP8266_DS18B20.cpp:(.text+0x2fc): undefined reference to `DallasTemperature::getTempCByIndex(unsigned char)'
ESP8266_DS18B20.cpp:(.text+0x35d): undefined reference to `DallasTemperature::begin()'
ESP8266_DS18B20.cpp:(.text+0x365): undefined reference to `DallasTemperature::requestTemperatures()'
ESP8266_DS18B20.cpp:(.text+0x36f): undefined reference to `DallasTemperature::getTempCByIndex(unsigned char)'
ESP8266_DS18B20.cpp.o:(.text.startup+0x8): undefined reference to `DallasTemperature::DallasTemperature(OneWire*)'
ESP8266_DS18B20.cpp.o: In function `_GLOBAL__sub_I_ssid':
ESP8266_DS18B20.cpp:(.text.startup+0x32): undefined reference to `DallasTemperature::DallasTemperature(OneWire*)'
collect2.exe: error: ld returned 1 exit status
Error compiling.
User avatar
By martinayotte
#19119 It looks like it is link time errors. Maybe you didn't add the DallasTemperature.cpp in your project Makefile. If you already added it, then maybe it is not C++ vs PlainC, you maybe need to do an 'extern "C" ' for the #include.
User avatar
By tytower
#19232 Yeh I agree .You don't have the Dallas library installed properly .

Also leaving the keys in was a good move . He's set up a complete test bed for you . You can see the data , send some data and even alter the fields if you want.Thanks torntrousers.