mirror of
https://github.com/arduino-libraries/ArduinoHttpClient.git
synced 2025-04-19 21:22:15 +03:00
Updates to work with proper release of Arduino 1.0
This commit is contained in:
parent
6e8d284c7b
commit
222f718705
@ -55,7 +55,7 @@ int HttpClient::startRequest(const char* aServerName, uint16_t aServerPort, cons
|
||||
|
||||
if (iProxyPort)
|
||||
{
|
||||
if (!iClient->connect(iProxyAddress, iProxyPort))
|
||||
if (!iClient->connect(iProxyAddress, iProxyPort) > 0)
|
||||
{
|
||||
#ifdef LOGGING
|
||||
Serial.println("Proxy connection failed");
|
||||
@ -65,7 +65,7 @@ int HttpClient::startRequest(const char* aServerName, uint16_t aServerPort, cons
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!iClient->connect(aServerName, aServerPort))
|
||||
if (!iClient->connect(aServerName, aServerPort) > 0)
|
||||
{
|
||||
#ifdef LOGGING
|
||||
Serial.println("Connection failed");
|
||||
@ -87,7 +87,7 @@ int HttpClient::startRequest(const IPAddress& aServerAddress, uint16_t aServerPo
|
||||
|
||||
if (iProxyPort)
|
||||
{
|
||||
if (!iClient->connect(iProxyAddress, iProxyPort))
|
||||
if (!iClient->connect(iProxyAddress, iProxyPort) > 0)
|
||||
{
|
||||
#ifdef LOGGING
|
||||
Serial.println("Proxy connection failed");
|
||||
@ -97,7 +97,7 @@ int HttpClient::startRequest(const IPAddress& aServerAddress, uint16_t aServerPo
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!iClient->connect(aServerAddress, aServerPort))
|
||||
if (!iClient->connect(aServerAddress, aServerPort) > 0)
|
||||
{
|
||||
#ifdef LOGGING
|
||||
Serial.println("Connection failed");
|
||||
|
@ -277,7 +277,6 @@ public:
|
||||
|
||||
// Inherited from Print
|
||||
virtual size_t write(uint8_t aByte) { return iClient-> write(aByte); };
|
||||
virtual size_t write(const char *aStr) { return iClient->write(aStr); };
|
||||
virtual size_t write(const uint8_t *aBuffer, size_t aSize) { return iClient->write(aBuffer, aSize); };
|
||||
// Inherited from Stream
|
||||
virtual int available() { return iClient->available(); };
|
||||
|
Loading…
x
Reference in New Issue
Block a user