We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a08f38 commit 46c5755Copy full SHA for 46c5755
AdafruitIO_Feed.cpp
@@ -118,7 +118,9 @@ bool AdafruitIO_Feed::exists()
118
{
119
_io->_http->startRequest(_feed_url, HTTP_METHOD_GET);
120
_io->_http->sendHeader("X-AIO-Key", _io->_key);
121
+ _io->_http->endRequest();
122
int status = _io->_http->responseStatusCode();
123
+ _io->_http->responseBody(); // needs to be read even if not used
124
return status == 200;
125
}
126
@@ -135,6 +137,7 @@ bool AdafruitIO_Feed::create()
135
137
_io->_http->write((const byte*)body.c_str(), body.length());
136
138
139
140
141
return status == 201;
142
143
0 commit comments