Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, an initiative of Stroud Water Research Center designed to help people advance knowledge and stewardship of fresh water.
New to EnviroDIY? Start here

Reply To: Error Compiling for board EnviroDIY Mayfly 1284p

Home Forums Mayfly Data Logger Error Compiling for board EnviroDIY Mayfly 1284p Reply To: Error Compiling for board EnviroDIY Mayfly 1284p

#18766
JK_WCCD
Participant

    I am using Arduino 1.8.19

    I checked the libraries using your method and I do see all the examples and the sketches under the ModularSensors list.

    I now ran into another problem which I believe is related to the DS3231 clock. I was able to set the time correctly using the directions from this page – 4. Preparing the Mayfly Data Logger – EnviroDIY

    However, when I tried to upload the sketch for DRWI_NoCellular, I got the following error window:

     

    Arduino: 1.8.19 (Windows 10), Board: “EnviroDIY Mayfly 1284p”

    C:\Users\Documents\Arduino\libraries\EnviroDIY_ModularSensors\src\sensors\MaximDS3231.cpp: In member function ‘virtual bool MaximDS3231::startSingleMeasurement()’:
    C:\Users\Documents\Arduino\libraries\EnviroDIY_ModularSensors\src\sensors\MaximDS3231.cpp:46:33: error: no matching function for call to ‘Sodaq_DS3231::convertTemperature(bool)’
    rtc.convertTemperature(false);
    ^
    In file included from

    C:\Users\Documents\Arduino\libraries\EnviroDIY_ModularSensors\src\sensors\MaximDS3231.cpp:10:0:
    C:\Users\Documents\Arduino\libraries\Sodaq_DS3231\src/Sodaq_DS3231.h:73:10: note: candidate: void Sodaq_DS3231::convertTemperature()
    void convertTemperature();
    ^~~~~~~~~~~~~~~~~~
    C:\Users\Documents\Arduino\libraries\Sodaq_DS3231\src/Sodaq_DS3231.h:73:10: note: candidate expects 0 arguments, 1 provided
    exit status 1
    Error compiling for board EnviroDIY Mayfly 1284p.

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