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

Sampling Feature UUID for manual data upload

Home Forums Mayfly Data Logger Sampling Feature UUID for manual data upload

Viewing 2 reply threads
  • Author
    • #18061
      Matt Barney

        I have a colleague for whom I programmed a Mayfly without any modem-related code because this station has no cellular service nor modem, so they upload data to MMW manually from the SD card. However, the data file being written to the card does not contain the Sampling Feature UUID, so they have to add that to the data file manually before it can be successfully uploaded to MMW. What do we need to change in order to make the proper header to be written to the file by the Mayfly? I’ve attached the code that is running on the board.

      • #18063
        Sara Damiano

          You need to set the sampling feature UUID for the logger. If you have an EnviroDIYPublisher, this happens automatically, but without the publisher, you need to add it.

          So after you set the logger pins in line 283 (dataLogger.setLoggerPins()), add the line dataLogger.setSamplingFeatureUUID(samplingFeature);

        • #18064
          Matt Barney

            Thank you!

        Viewing 2 reply threads
        • You must be logged in to reply to this topic.