Library: ParticleHTTPClient

Hi all,

Now that firmware 0.4.5 has been released HTTP requests are much quicker thanks to TCPClient.connected() telling the truth. I’ve ported the Arduino HTTP library to Particle which is smarter and faster then the default HTTPClient. It can also deal with websites which don’t report their content length through the use of dynamic memory allocation.

Regarding that if anyone has any feedback on lines 96 through 107 in http_test.ino and my use of malloc/remalloc I’d love to hear it.

Due to the available memory available in the Photon it will never be able to download Googles homepage, but Particles blog is just the right size to demonstrate the dynamic memory allocation. Unquote line 72 to force it.

Kev

6 Likes