Try adding this build flag: -DAUTOCONNECT_APID=\"Captive\"
to platformio.ini
.
If you have no other build flags, this line in the [env:...]
section should do the trick:
build_flags = -DAUTOCONNECT_APID=\"Captive\"
(the extra backslashes will probably be needed to get a quoted string into the #define
)