Home › Forums › Mayfly Data Logger › best practices enabling debugging modular sensors using platformIO › Reply To: best practices enabling debugging modular sensors using platformIO
You can also enable all of the debugging using a build flag in your platformio.ini. The result is exactly the same as if you un-comment the line in the header. You can add flags for any (or all) of the different modules.
1 2 3 4 5 6 7 8 9 10 |
build_flags = -DSDI12_EXTERNAL_PCINT -DNEOSWSERIAL_EXTERNAL_PCINT -DMQTT_MAX_PACKET_SIZE=240 -DTINY_GSM_RX_BUFFER=512 -DTINY_GSM_YIELD_MS=2 -DMS_DATAPUBLISHERBASE_DEBUG -DMS_DATAPUBLISHERBASE_DEBUG -DMS_SODAQ2GBEER6_DEBUG -DMS_THINGSPEAKPUBLISHER_DEBUG |
There also seems to be a bug in the very latest PlatformIO (4.0.0) when installing library dependencies. For some reason when I create a new project, add EnviroDIY_ModularSensors to my dependencies, and then try to compile, the library dependency finder doesn’t correctly find and install of of the dependencies during the first build. If I manually install the library using pio lib install EnviroDIY_ModularSensors
before building, it finds everything perfectly.