After updating PlatformIO I am now getting this ERROR

I get the following error when trying to use the IP2STR macro in my project.

Please advise.

/Users/jjohnston/.platformio/packages/framework-arduinoespressif/tools/sdk/lwip/include/lwip/ip_addr.h:220:43: error: invalid cast from type ‘IPAddress’ to type ‘u8_t* {aka unsigned char*}’

Hi @idolpx!
Could you please provide your project to reproduce the issue?

Yes… This was compiling just fine before recent updates to PlatformIO.

Thanks in advance.

Could you try a workaround mentioned here? Just modify your build_flags:

build_flags = -ULWIP_OPEN_SRC -Wl,-Tesp8266.flash.4m.ld

Perfect! I didn’t realize someone had already asked this question. Thanks!

Actually there is an extra comma in there and it’s not building the 4MB SPIFFS file system.
It should be as follows.

build_flags = -ULWIP_OPEN_SRC -Wl,-Tesp8266.flash.4m.ld