Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, a web toolkit designed to help citizens, conservation practitioners, municipal decision-makers, researchers, educators, and students advance knowledge and stewardship of fresh water. New to EnviroDIY? Start here

Reply To: Mayfly sketch compiles, seems to upload, but doesn’t

Home Forums Mayfly Data Logger Mayfly sketch compiles, seems to upload, but doesn’t Reply To: Mayfly sketch compiles, seems to upload, but doesn’t

#18034
Sedhead
Participant

    I think that the directory structure could be the culprit. The way that I have been able to reliably get this work is the following:

    1. Create a new Platformio project.
    2. Create an identically-named folder in that project in which to put my code.
    3. Create an identically-named .ino file in that folder for the sketch I need to upload.
    4. Use the Compare files functionality in VSC to move all of my old code into those new files.
    5. Compile and upload

    So I’m basically re-making the project in platformio and that seems to work.