Barometer Grove HP206c + Arduino MKR GSM 1400

Hi,
I planned to use a GROVE barometer (Grove - HP206c) and upload data to cloud by an Aurduino MRK GSM 1400.
To make the project uploadable I installed also an Arduino MKR Connector Carrier.
Just to try the sensor I opened the example sketch HP20x demo made by Oliver Wang from Seeed Studio.

If I compile the sketch it return an error and doesn’t work.
I tried to exclude one library at time and the error occurs when <HP20x_dev.h> or <KalmanFilter.h> are called.

I think everyone of you could try and will have the same problem.

The error is:

Arduino:1.8.12 (Windows 8.1), Board:“Arduino MKR GSM 1400”

C:…\Arduino\libraries\Grove_barometer_HP20x\HP20x_dev.cpp: In constructor ‘HP20x_dev::HP20x_dev()’:

C:…\Arduino\libraries\Grove_barometer_HP20x\HP20x_dev.cpp:33:22: error: no matching function for call to ‘TwoWire::TwoWire()’

HP20x_dev::HP20x_dev()

                 ^

In file included from C:…\Arduino\libraries\Grove_barometer_HP20x\HP20x_dev.h:14:0,

            from C:\...\Arduino\libraries\Grove_barometer_HP20x\HP20x_dev.cpp:13:

C:…\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.6\libraries\Wire/Wire.h:35:5: note: candidate: TwoWire::TwoWire(SERCOM*, uint8_t, uint8_t)

TwoWire(SERCOM *s, uint8_t pinSDA, uint8_t pinSCL);

^~~~~~~

C:…\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.6\libraries\Wire/Wire.h:35:5: note: candidate expects 3 arguments, 0 provided

C:…\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.6\libraries\Wire/Wire.h:32:7: note: candidate: constexpr TwoWire::TwoWire(const TwoWire&)

class TwoWire : public Stream

  ^~~~~~~

C:…\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.6\libraries\Wire/Wire.h:32:7: note: candidate expects 1 argument, 0 provided

C:…\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.6\libraries\Wire/Wire.h:32:7: note: candidate: constexpr TwoWire::TwoWire(TwoWire&&)

C:…\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.6\libraries\Wire/Wire.h:32:7: note: candidate expects 1 argument, 0 provided

exit status 1
Error during compiling for board Arduino MKR GSM 1400.

How to solve it?
Thank you in advance

@Valdarn8 I have helped you to fix this bug, please update to the latest software.

Hi Baozhu and thank you for your effort.
Otherwise it still report error
It seem there is a lack of argument. Something about Wire library.
I am using Arduino IDE v1.8.12 on Windows 8.1, Board:“Arduino MKR GSM 1400”

C:…\Arduino\libraries\Grove_barometer_HP20x\HP20x_dev.cpp: In constructor ‘HP20x_dev::HP20x_dev()’:

C:…\Arduino\libraries\Grove_barometer_HP20x\HP20x_dev.cpp:33:22: error: no matching function for call to ‘TwoWire::TwoWire()’

HP20x_dev::HP20x_dev()

                  ^

In file included from C:…\Arduino\libraries\Grove_barometer_HP20x\HP20x_dev.h:14:0,

             from C:\..\Arduino\libraries\Grove_barometer_HP20x\HP20x_dev.cpp:13:

C:…\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.6\libraries\Wire/Wire.h:35:5: note: candidate: TwoWire::TwoWire(SERCOM*, uint8_t, uint8_t)

 TwoWire(SERCOM *s, uint8_t pinSDA, uint8_t pinSCL);

 ^~~~~~~

C:…\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.6\libraries\Wire/Wire.h:35:5: note: candidate expects 3 arguments, 0 provided

C:…\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.6\libraries\Wire/Wire.h:32:7: note: candidate: constexpr TwoWire::TwoWire(const TwoWire&)

class TwoWire : public Stream

   ^~~~~~~

C:…\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.6\libraries\Wire/Wire.h:32:7: note: candidate expects 1 argument, 0 provided

C:…\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.6\libraries\Wire/Wire.h:32:7: note: candidate: constexpr TwoWire::TwoWire(TwoWire&&)

C:…\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.6\libraries\Wire/Wire.h:32:7: note: candidate expects 1 argument, 0 provided

exit status 1
Error during compiling for Arduino MKR GSM 1400 board.


This inheritance relationship has not been included in my recent revision, you should not have updated to the latest software.

Ok, it’s working! Thank you very much

1 Like