I often get -1 as result of a simple http get.
After fiddling a bit I thought I had the necessity to change the timeout value in httpclient library or all my requests will return -1 (very long requests).
I have found this row in httpclient.ccp code that seems to be the key of my current issue:
static const uint16_t TIMEOUT = 5000; // Allow maximum 5s between data packets.
Is it possible to change this timeout value in http://build.particle.io ?
Thanks and happy hacking