WeatherDuino Forum

Full Version: Compile error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, trying to upload latest version to Tx but get the following error

Arduino: 1.8.2 (Windows 10), Board: "Arduino Nano, ATmega328"

C:\Users\JBA\Documents\Arduino\WeatherDuino_Pro2_PLUS\v4.1\software\TX software\WeatherDuino_Pro2_Universal_TX_v4_08102017\Process_IDx.ino: In function 'void send_SensorID2()':

Process_IDx:109: error: 'get_WindVane' was not declared in this scope

   WindDir = get_WindVane();

                          ^

Multiple libraries were found for "EEPROM.h"
 Used: C:\Program Files\Arduino\hardware\arduino\avr\libraries\EEPROM
 Not used: C:\Users\JBA\Documents\Arduino\libraries\EEPROM
exit status 1
'get_WindVane' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


any ideas what i am doing wrong
Thanks
Jim
As a matter of interest my Rx and WD's updated fine


Jim
I've seen similar compile errors which I was never able get past.
But, I would try clearing all the libraries from C:\Program Files\Arduino\hardware\arduino\avr\libraries\EEPROM and make sure that all the required libraries are in C:\Program Files\Arduino\hardware\arduino\avr\libraries\EEPROM

Hopefully Werk_AG or another Arduino IDE expert might offer other suggestions.
I have this library only one and in the "C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\" ...
My is from 2017-03-15, but I use only IDE 1.8.1 - it is not recommended sw.
(08-10-2017, 06:53)Barrow4491 Wrote: [ -> ]Hi, trying to upload latest version to Tx but get the following error

Process_IDx:109: error: 'get_WindVane' was not declared in this scope

   WindDir = get_WindVane();

                          ^

Hi Jim,

Make sure you are using the correct setting for the wind vane type in your Config_TX.h
Things have changed since v3.xx
I'm almost sure that the problem is an incorrect value set at "WDirSensor_Type"

Please verify it and report back.


Code:
// --------------------------------------------------------------------------------------
//   Define type of Wind Direction sensor
// --------------------------------------------------------------------------------------
/*
--- Fine Offset Wind Vane ---
Use 1O for standard FO wind vane

--- Analogue Wind Vanes ---
Use 20 for any 5V analogue wind vane. See bellow for a list of tested models

- Inspeed E-Vane 2
- Davis 6410
- Novalynx, model 200-WS-02F
- Environmental Measurements Limited, model model WSD1
- DIDCOT, model DWD205
- Almost all 5V analogue wind vanes will work

*/
#define WDirSensor_Type  20  // SEE INFO ABOVE!!!


(08-10-2017, 06:53)Barrow4491 Wrote: [ -> ]Multiple libraries were found for "EEPROM.h"
 Used: C:\Program Files\Arduino\hardware\arduino\avr\libraries\EEPROM
 Not used: C:\Users\JBA\Documents\Arduino\libraries\EEPROM
exit status 1
'get_WindVane' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Regarding to this, the EEPROM library is no more distributed in the software package. Software uses the default EEPROM library included in any recent Arduino IDE version.
Software is compiling fine with v1.8.3
(08-10-2017, 10:55)uncle_bob Wrote: [ -> ]I've seen similar compile errors which I was never able get past.
But, I would try clearing all the libraries from C:\Program Files\Arduino\hardware\arduino\avr\libraries\EEPROM and make sure that all the required libraries are in C:\Program Files\Arduino\hardware\arduino\avr\libraries\EEPROM

Hopefully Werk_AG or another Arduino IDE expert might offer other suggestions.

The best place to have all the supplied libraries (or any other extra libraries) are at
C:\My Documents\Arduino\libraries

This way, whenever you upgrade Arduino IDE, you don't have to reinstall all the libraries again.
Werk,
Thanks for that, I did not read it carefully and put 30 instead of 20 for the davis unit (old habits die hard) now compiles and uploads OK.
I upgraded my spare Tx board and hope to have the time to swap it later this week.A couple of questions;
1   The extra green dot to the right of the time display, what does it indicate?
2   I see it now reports the IP address (great idea) but in my case it is wrong.

I love the way the system is always evolving, great work.

Regards
Jim
Quote:I did not read it carefully and put 30 instead of 20 for the davis unit (old habits die hard) now compiles and uploads OK.
I upgraded my spare Tx board and hope to have the time to swap it later this week.A couple of questions;

Then, don't forget that on first use you should manually rotate your wind vane several times, as stated on the upgrade notes.


Quote:The extra green dot to the right of the time display, what does it indicate?

Green - Your software is up to date.
Yellow - There is a new software version available

Quote:I see it now reports the IP address (great idea) but in my case it is wrong.

No, it doesn't report the IP address, there is no need to do it, when the server is contacted he knows the IP from where the request is done. Smile
Instead what is sent, its an ID that must be unique, that's obtained from the mac address of the WiFi module.
The info that is sent to the WeatherDuino server, in the long term, will allow us to build a map of all WeatherDuino Pro2 PLUS stations that are effectively alive, which will be a lot more useful to all of us than the current map we already have.

Your stations (I believe they are two) are reporting very well. It would be very nice if you could change the default weather station name (Meteocercal) to your own weather station name (see your RX user config file).

Regards