But there’s no string escaping there, it’s read as if its a regular code identifier. What happens when yo use
build_flags =
-fexceptions
-D MESH_PREFIX=\"${sysenv.MESH_PREFIX}\"
-D MESH_PASSWORD=\"${sysenv.MESH_PASSWORD}\"
instead?
(Reference: How could the main.cpp read the parameters at platformio.ini? - #3 by maxgerhardt and Removing Secrets from SRC - #16 by gzor)