>>> Join Us in the Fight Against Air Pollution

AirGradient Forum

Error Compiling Sketch For AirGradient DIY Display

I’m experiencing a compile error for the sketch provided for the AirGradient DIY Display seen here: AirGradient DIY Display

This is the error: exit status 1
call to ‘HTTPClient::begin’ declared with attribute error: obsolete API, use ::begin(WiFiClient, url)

Can someone fix this?

Thanks in advance for a solution!

Hi Tazilon,

It looks like you have an obsolete version of HTTPClient installed

I see mine’s out of date as well, so perhaps we share a common problem. Here’s a screen-grab of mine.

Tools > Board > Boards Manager:

Hopefully it’s as simple as that.


- Greig.

1 Like

Hi Greig…

Thanks for pointing me in the right direction!

OK, for those interested, I got this to compile fine now. The issue was that version 3.0.2 (the latest) of ESP8266 Community package caused the problem… I downgraded to version 2.7.4 and all is well now. :joy: :smiley:

1 Like