Problems getting temp from my hx710's?

I know they worked when I received them because I ran all the example code in the library, HX710. Now Arduino IDE 2.1.1 is giving me

> C:\Users\lstei\AppData\Local\Temp\.arduinoIDE-unsaved2023619-7584-1vvw7n5.9hxb\readTemperature\readTemperature.ino: In function 'void loop()':
> C:\Users\lstei\AppData\Local\Temp\.arduinoIDE-unsaved2023619-7584-1vvw7n5.9hxb\readTemperature\readTemperature.ino:38:31: error: 'HX710_TEMPERATURE_40HZ' was not declared in this scope
>      ps.readAndSelectNextData( HX710_TEMPERATURE_40HZ );
>                                ^~~~~~~~~~~~~~~~~~~~~~
> C:\Users\lstei\AppData\Local\Temp\.arduinoIDE-unsaved2023619-7584-1vvw7n5.9hxb\readTemperature\readTemperature.ino:38:31: note: suggested alternative: '_HX710_TEMPLATE_H_'
>      ps.readAndSelectNextData( HX710_TEMPERATURE_40HZ );
>                                ^~~~~~~~~~~~~~~~~~~~~~
>                                _HX710_TEMPLATE_H_
> C:\Users\lstei\AppData\Local\Temp\.arduinoIDE-unsaved2023619-7584-1vvw7n5.9hxb\readTemperature\readTemperature.ino:39:15: error: 'class HX710' has no member named 'getLastTemperature'; did you mean 'getLastOtherInput'?
>      temp = ps.getLastTemperature();
>                ^~~~~~~~~~~~~~~~~~
>                getLastOtherInput
> 
> exit status 1
> 
> Compilation error: 'HX710_TEMPERATURE_40HZ' was not declared in this scope

Why is Arduino IDE messing with what worked a few weeks ago?
It's the example for read temperature BTW.
Any ideas?
Larry

Well, since you say the code worked, and now the Arduino environment says no, I'd say you've probably either updated the IDE and it broke something, or you've moved library files around and broken something. Your initial phrasing sounds like you suspect the sensors, but I see no reason to suspect that when the compile won't complete successfully. Hope that helps. Maybe better asking in the IDE subforum, not the programming section. Ask a moderator to move the thread over there?

Sorry, you mistook what I said. I meant only to confirm that the library function/member function worked some weeks ago and no longer works. I have done zero computer housekeeping in the last several years so that cannot be the cause.
Larry

I have removed and reinstalled the library and no change.
The update a few weeks ago could be it, yes. So, I'll have to bit bang it then?
Larry

OK. Found it in the Keywords list. The library must have changed and the author didn't change the examples.
Thanks
Larry

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.