Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

getting started problem
#1

Warning, brand new user here!!  Confused

Just got my Pro2 Compact in the mail yesterday and started playing with it. Ran into a bit of a problem...
- Got Arduino 1.8.8 installed.
- Downloaded the software "WeatherDuino_Pro2_Compact_v2.0_20181214.rar". Had a bit of problem extracting it on my debian box but found a windows app that says it extracted it correctly.
- copied the files from the downloaded library directory to the library directory for Arduino 1.8.8
- opened the file "WeatherDuino_P2ESP8266_RX_v2.0_b001 (which also opened a bunch of other files)
- clicked on "Verify" and got this error message:


Arduino: 1.8.8 (Linux), Board: "Arduino/Genuino Uno"


WeatherDuino_P2ESP8266_RX_v2.0_b001:40:22: error: pgmspace.h: No such file or directory
compilation terminated.
exit status 1
pgmspace.h: No such file or directory

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


Any suggestions?

Cheers,
Gord

[url=https://www.meteocercal.info/forum/attachment.php?aid=1687][/url]
Reply
#2

Confirmed. For me there is the same problem. 
Arduino 1.8.7 Win 10.

Code:
WeatherDuino_P2ESP8266_RX_v2.0_b001:40:22: error: pgmspace.h: No such file or directory

compilation terminated.

exit status 1
pgmspace.h: No such file or directory
Reply
#3

For which board are you compiling for?
For the Pro2 Compact it should be WeMos D1 R2 & mini

Please refer to this WeatherDuino WiKi page: Programming WeatherDuino devices

Reply
#4

(14-12-2018, 21:19)Werk_AG Wrote:  For which board are you compiling for?
For the Pro2 Compact it should be WeMos D1 R2 & mini

Please refer to this WeatherDuino WiKi page: Programming WeatherDuino devices

Oh.. my mind.... Sleepy

Working perfectly, thanks Werk_AG  Smile
Reply
#5

(14-12-2018, 21:45)jarekh3 Wrote:  
(14-12-2018, 21:19)Werk_AG Wrote:  For which board are you compiling for?
For the Pro2 Compact it should be WeMos D1 R2 & mini

Please refer to this WeatherDuino WiKi page: Programming WeatherDuino devices

Oh.. my mind.... Sleepy

Working perfectly, thanks Werk_AG  Smile

Smile  Thank you

(14-12-2018, 19:42)WetCoast Wrote:  Any suggestions?

Hi WetCoast, welcome to the forum.
Hope the info at WeatherDuino WiKi was been useful for you too. If you need any further help I will be here.

Reply
#6

Hi,
Thanks for the welcome!! Smile 
I'm going to have to ask for some clarification...
I'm not sure what you're asking; "which board are you compiling for"
I added the link suggested in the wiki but it still doesn't seem to work, I get the same error.
Code:
Arduino: 1.8.8 (Linux), Board: "Arduino Mini, ATmega328P"

WeatherDuino_P2ESP8266_RX_v2.0_b001:40:22: error: pgmspace.h: No such file or directory
compilation terminated.
exit status 1
pgmspace.h: No such file or directory

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

I selected Tools > Board "Anduino Mini"

Perhaps my extraction of the software from the rar file was not successful? Am I missing a library file??
Reply
#7

Wiki:

Code:
WeMos D1 R2 & mini isn't listed in my list of available boards. How do I add it?
In your Arduino IDE:

Open Preferences window.
Paste this URL into the Additional Board Manager URLs field:
http://arduino.esp8266.com/stable/package_esp8266com_index.json
After installation, you should have many new types of boards available, including the WeMos D1 R2 & mini
Arduino: 1.8.8 (Linux), Board: "Arduino/Genuino Uno"-  > Lolin(wemos) R1 D2 mini
Reply
#8

Making progress... I think.
I added the link before but I needed to actually install "esp8266 by ESP8266 Community version 2.4.2"
before I could see the option for "Lolin(wemos) R1 D2 mini"

I'm not sure if I have the other options for that board correct.


Now I'm getting a different error.

Code:
Arduino: 1.8.8 (Linux), Board: "LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

Build options changed, rebuilding all
WeatherDuino_P2ESP8266_RX_v2.0_b001:327:8: error: no matching function for call to 'BME280::BME280()'
BME280 bme;
       ^
/home/gord/Documents/WeatherDuino/WeatherDuino_Pro2_Compact/software/RX software/WeatherDuino_P2ESP8266_RX_v2.0_b001/WeatherDuino_P2ESP8266_RX_v2.0_b001.ino:327:8: note: candidates are:
In file included from /home/gord/Documents/WeatherDuino/WeatherDuino_Pro2_Compact/software/RX software/WeatherDuino_P2ESP8266_RX_v2.0_b001/WeatherDuino_P2ESP8266_RX_v2.0_b001.ino:59:0:
/home/gord/Arduino/libraries/BME280/src/BME280.h:143:4: note: BME280::BME280(const BME280::Settings&)
   BME280(
   ^
/home/gord/Arduino/libraries/BME280/src/BME280.h:143:4: note:   candidate expects 1 argument, 0 provided
/home/gord/Arduino/libraries/BME280/src/BME280.h:43:7: note: constexpr BME280::BME280(const BME280&)
class BME280
      ^
/home/gord/Arduino/libraries/BME280/src/BME280.h:43:7: note:   candidate expects 1 argument, 0 provided
/home/gord/Arduino/libraries/BME280/src/BME280.h:43:7: note: constexpr BME280::BME280(BME280&&)
/home/gord/Arduino/libraries/BME280/src/BME280.h:43:7: note:   candidate expects 1 argument, 0 provided
WeatherDuino_P2ESP8266_RX_v2.0_b001:327:8: error: cannot declare variable 'bme' to be of abstract type 'BME280'
BME280 bme;
       ^
In file included from /home/gord/Documents/WeatherDuino/WeatherDuino_Pro2_Compact/software/RX software/WeatherDuino_P2ESP8266_RX_v2.0_b001/WeatherDuino_P2ESP8266_RX_v2.0_b001.ino:59:0:
/home/gord/Arduino/libraries/BME280/src/BME280.h:43:7: note:   because the following virtual functions are pure within 'BME280':
class BME280
      ^
/home/gord/Arduino/libraries/BME280/src/BME280.h:264:17: note:     virtual bool BME280::WriteRegister(uint8_t, uint8_t)
   virtual bool WriteRegister(
                ^
/home/gord/Arduino/libraries/BME280/src/BME280.h:270:17: note:     virtual bool BME280::ReadRegister(uint8_t, uint8_t*, uint8_t)
   virtual bool ReadRegister(
                ^
/home/gord/Documents/WeatherDuino/WeatherDuino_Pro2_Compact/software/RX software/WeatherDuino_P2ESP8266_RX_v2.0_b001/Routines.ino: In function 'void ReadLocalSensors()':
Routines:437:44: error: no matching function for call to 'BME280::ReadData(float&, float&, float&, bool, bool)'
  bme.ReadData(pres, temp, humd, true, true);     // Parameters: (float& pressure, float& temp, float& humidity, bool hPa = true, bool celsius = false)

                                           ^
/home/gord/Documents/WeatherDuino/WeatherDuino_Pro2_Compact/software/RX software/WeatherDuino_P2ESP8266_RX_v2.0_b001/Routines.ino:437:44: note: candidate is:
In file included from /home/gord/Documents/WeatherDuino/WeatherDuino_Pro2_Compact/software/RX software/WeatherDuino_P2ESP8266_RX_v2.0_b001/WeatherDuino_P2ESP8266_RX_v2.0_b001.ino:59:0:
/home/gord/Arduino/libraries/BME280/src/BME280.h:306:9: note: bool BME280::ReadData(int32_t*)
   bool ReadData(
        ^
/home/gord/Arduino/libraries/BME280/src/BME280.h:306:9: note:   candidate expects 1 argument, 5 provided
Multiple libraries were found for "RH_ASK.h"
Used: /home/gord/arduino-1.8.8/libraries/RadioHead_TeensyVersion
Not used: /home/gord/arduino-1.8.8/libraries/RadioHead
Not used: /home/gord/arduino-1.8.8/libraries/RadioHead
Not used: /home/gord/arduino-1.8.8/libraries/RadioHead
Not used: /home/gord/arduino-1.8.8/libraries/RadioHead
Multiple libraries were found for "BME280.h"
Used: /home/gord/Arduino/libraries/BME280
Not used: /home/gord/arduino-1.8.8/libraries/BME280
Multiple libraries were found for "ArduinoJson.h"
Used: /home/gord/Arduino/libraries/ArduinoJson
Not used: /home/gord/arduino-1.8.8/libraries/ArduinoJson
exit status 1
no matching function for call to 'BME280::BME280()'

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

Hi, yes you are almost there... Smile

Please make sure you are using the BME280 library that is supplied with the software package and not any other, no matter if it is older or newer (There are a newer version of this library which isn't compatible with the WeatherDuino software).

Reply
#10

No joy. Huh 
I tried deleting all the library folders and copied jut the library folders from the downloaded rar and I still get the same error.
Thank you for being so patient with me!


Code:
Arduino: 1.8.8 (Linux), Board: "LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Enabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

WeatherDuino_P2ESP8266_RX_v2.0_b001:327:8: error: no matching function for call to 'BME280::BME280()'
BME280 bme;
       ^
/home/gord/Documents/WeatherDuino/WeatherDuino_Pro2_Compact/software/RX software/WeatherDuino_P2ESP8266_RX_v2.0_b001/WeatherDuino_P2ESP8266_RX_v2.0_b001.ino:327:8: note: candidates are:
In file included from /home/gord/Documents/WeatherDuino/WeatherDuino_Pro2_Compact/software/RX software/WeatherDuino_P2ESP8266_RX_v2.0_b001/WeatherDuino_P2ESP8266_RX_v2.0_b001.ino:59:0:
/home/gord/Arduino/libraries/BME280/src/BME280.h:143:4: note: BME280::BME280(const BME280::Settings&)
   BME280(
   ^
/home/gord/Arduino/libraries/BME280/src/BME280.h:143:4: note:   candidate expects 1 argument, 0 provided
/home/gord/Arduino/libraries/BME280/src/BME280.h:43:7: note: constexpr BME280::BME280(const BME280&)
class BME280
      ^
/home/gord/Arduino/libraries/BME280/src/BME280.h:43:7: note:   candidate expects 1 argument, 0 provided
/home/gord/Arduino/libraries/BME280/src/BME280.h:43:7: note: constexpr BME280::BME280(BME280&&)
/home/gord/Arduino/libraries/BME280/src/BME280.h:43:7: note:   candidate expects 1 argument, 0 provided
WeatherDuino_P2ESP8266_RX_v2.0_b001:327:8: error: cannot declare variable 'bme' to be of abstract type 'BME280'
BME280 bme;
       ^
In file included from /home/gord/Documents/WeatherDuino/WeatherDuino_Pro2_Compact/software/RX software/WeatherDuino_P2ESP8266_RX_v2.0_b001/WeatherDuino_P2ESP8266_RX_v2.0_b001.ino:59:0:
/home/gord/Arduino/libraries/BME280/src/BME280.h:43:7: note:   because the following virtual functions are pure within 'BME280':
class BME280
      ^
/home/gord/Arduino/libraries/BME280/src/BME280.h:264:17: note:     virtual bool BME280::WriteRegister(uint8_t, uint8_t)
   virtual bool WriteRegister(
                ^
/home/gord/Arduino/libraries/BME280/src/BME280.h:270:17: note:     virtual bool BME280::ReadRegister(uint8_t, uint8_t*, uint8_t)
   virtual bool ReadRegister(
                ^
/home/gord/Documents/WeatherDuino/WeatherDuino_Pro2_Compact/software/RX software/WeatherDuino_P2ESP8266_RX_v2.0_b001/Routines.ino: In function 'void ReadLocalSensors()':
Routines:437:44: error: no matching function for call to 'BME280::ReadData(float&, float&, float&, bool, bool)'
  bme.ReadData(pres, temp, humd, true, true);     // Parameters: (float& pressure, float& temp, float& humidity, bool hPa = true, bool celsius = false)

                                           ^
/home/gord/Documents/WeatherDuino/WeatherDuino_Pro2_Compact/software/RX software/WeatherDuino_P2ESP8266_RX_v2.0_b001/Routines.ino:437:44: note: candidate is:
In file included from /home/gord/Documents/WeatherDuino/WeatherDuino_Pro2_Compact/software/RX software/WeatherDuino_P2ESP8266_RX_v2.0_b001/WeatherDuino_P2ESP8266_RX_v2.0_b001.ino:59:0:
/home/gord/Arduino/libraries/BME280/src/BME280.h:306:9: note: bool BME280::ReadData(int32_t*)
   bool ReadData(
        ^
/home/gord/Arduino/libraries/BME280/src/BME280.h:306:9: note:   candidate expects 1 argument, 5 provided
Multiple libraries were found for "BME280.h"
Used: /home/gord/Arduino/libraries/BME280
Not used: /home/gord/arduino-1.8.8/libraries/BME280
Multiple libraries were found for "ArduinoJson.h"
Used: /home/gord/Arduino/libraries/ArduinoJson
Not used: /home/gord/arduino-1.8.8/libraries/ArduinoJson
exit status 1
no matching function for call to 'BME280::BME280()'

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




Users browsing this thread: 1 Guest(s)