Closed mansdahlstrom1 closed 8 months ago
YMMV, but I was just trying to do the same thing.
This is where I ended up:
[platformio]
default_envs = thermespy32
src_dir = src
[env:thermespy32]
platform = espressif32
board = lolin32
framework = arduino
lib_deps =
ESPHelper
ArduinoJson
PubSubClient
https://github.com/thomasfredericks/Metro-Arduino-Wiring.git
WebServer
This isn't the example code from here or anything. I may not be using enough of the library to exercise all the includes.
I ended up getting frustrated with Metro. So I published it to platformio's registry. Here's the lib_deps that is working for me:
lib_deps =
ESPHelper
ArduinoJson
PubSubClient
Metro-Arduino-Wiring
WebServer
The next step is to probably put these dependencies into the ESPHelper's library.json, so we (as users) just have to add ESPHelper, and it will figure out all this for us.
Many years too late but this has all been sorted. The library now properly compiles with PIO with all dependencies accounted for.
Would be really nice if there was installation instructions for PlatformIO. I've setup a project for the Adafruit Feather Huzzah32 to play around with and was able to find most dependencies for ESPHelper. But i cannot get it to work properly.
Note: Also downgraded ArduinoJson to version
6.14.1
.see my
paltformio.ini
fileI'm not sure i've installed installed metro correctly. What i did was to download the latest version here : https://github.com/thomasfredericks/Metro-Arduino-Wiring/archive/master.zip. And added the folder to
lib
folder in my project. So once that was done it seemed to be working for me, no errors saying it can't findMetro.h
.But even after this. I'm stuck with the same errors mentioned in this issue https://github.com/ItKindaWorks/ESPHelper/issues/35.
Posting them here too: (All errors seems to be located in the
ShardedData.h
header file)