Dallas Temperature Sensor - compiling error
-
not sure what the forum etiquette is but +1 or "me too" - same error on 1.6.6 ide - I have moved all the libraries etc from the latest mysensors download to the libraries area - other samples build ok - like binaryswitch.
@malarcy LIkely bad form replying to my own message - but I found I can work around it by removing the "offending" couple of lines - the temp sensor works - but I suspect that if I chain more together then I might get timing errors and problems.
I removed these lines
// query conversion time and sleep until conversion completed int16_t conversionTime = sensors.millisToWaitForConversion(sensors.getResolution()); // sleep() call can be replaced by wait() call if node need to process incoming messages (or if node is repeater) gw.sleep(conversionTime);```This got me working for testing and playing - but would like some help on the proper solution.
-
Just bumping this thread - would really like to have a definitive answer. There must be some clever guys out there that can shed some light :) ?
-
One of the first steps in the troubleshooting process, that i have learnt recently, is exactly this. Making sure the libs are up to date, or even better, not conflicting/co-operating. Hek is the master at pointing out this to us all here ;)
-
@oded00 Follow the instructions at http://www.mysensors.org/about/arduino#installing-the-sensor-libraries
Make sure you delete everything in the libraries folder before extracting the content of the MySensors library zip archive to delete any old versions. -
Sorry guys - is this error fixed? Have the same problem after installing fresh dev branch 2.0
The message on compiling is: is private ... within this context
I have declard the section in DallasTemperature.h line 249 in public: and now it works?!?
Pleasy try it - for me it works :+1:
-
That did the trick, Thanx!!
Copied Dallas directory from "mysensors master" to Arduino library location.
Works with 1.6.6@markush - A few comments above is this one:
That did the trick, Thanx!!
Copied Dallas directory from "mysensors master" to Arduino library location.
Works with 1.6.6That is in reply to Hek's response of:
You're probably using and old/different Dallas library. Sure you use the one provided in the MySensors bundle?
So firstly, I would double check that you have the correct Dallas Lib, the one that is in the MySensors bundle. Also, as mfalkvidd says above your comment, make sure you have extracted the Libs from MySensors correctly.
-
I had the same error and it turned out that for some reason it was finding the library in a folder in My Documents and also in the Arduino install folder. I renamed the copy in My Documents (I don't remember putting it there so maybe it was older version?) and all was well.