Hi @valeros, with some debugging I see that the env variables are set correctly.
However, the same firmware will connect to mqtt when compiled and uploaded via the Arduino IDE, and not connect via Platformio.
EDIT: if I define the vars as string in the code itself, everything will work. However via serial monitor I see that they’re defined also via env. Maybe a different type?