Gera posted an update 3 years, 7 months ago
@shicks Hello Ms. Hicks, I hope everything is well on your behalf,
So at the moment I am trying to store data in a SD card, the SD card I am using is the one that came with the mayfly kit and I was trying to test out the simple file example code that the Envirodiy website has. When I try to compile it, it says that the next three things were not declared in this scope: setupLogFile(), createDataRecord(), and logData(). I understand the meaning of “were not declared in this scope” but what I am confused with is why is that kind of error happening. I am using Atom with platformIO to test the program and have the SD library installed. They really need to be declared somehow? I think there may be one library that I am missing but I am not sure which one is exactly. I tried SdFat library as well and still the same problem shows up. I am going to try to use this to record data on the Temperature/Humidity sensor I have but I need to figure out this problem first. I hope to hear from you soon!
It sounds like you’re having issues with not properly declaring the libraries required for the sketch, or not having the libraries installed on your computer. I use the standard Arduino IDE, but Sara (and others) who use Platform IO will need to help you since I’m not as familiar with the library functionality with that software.