"EnergyMonitor" does not name a type Error

Trying to reload emontx3 std firmware. have downloaded all files from GutHub to Arduino librariy. When trying to verify EmonLib I get "EnergyMonitor" does not name a type   also when verifying emontx3_2discretesampling I get "Sleepy" has not been declared.

Must be doing something wrong. Not sure what all files downloaded from "download zip" button on GitHub

webby's picture

Re: "EnergyMonitor" does not name a type Error

Seem to have sorted it. Arduino software way out of date even though "check for updates" Latest seems to verify ok.  Arduino telling me that updates are available for Onewire and RTClib should I download these?

 

Robert Wall's picture

Re: "EnergyMonitor" does not name a type Error

" [some named variable or function] has not been declared" almost always means that you have not downloaded and installed (and possibly renamed) a library correctly.

You need those libraries only if you are using the temperature sensor or a real-time clock (the RTC is an optional add-on I think for the Pi and if I remember correctly, the OpenKontrol base.

webby's picture

Re: "EnergyMonitor" does not name a type Error

Thanks Robert. Updating the Arduino pc software sorted it for some reason. As you might remember from previous posts I am very inexperienced with this stuff but enjoying it when it works. I notice that the new Arduino pc software gives me alerts when updated versions of  my libraries are available. Is this just a semi automatic github service? And if so I guess I should download the updates?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.