You've already forked ArduinoHttpClient
mirror of
https://github.com/arduino-libraries/ArduinoHttpClient.git
synced 2025-07-11 06:41:44 +03:00
Updates to work with proper release of Arduino 1.0
This commit is contained in:
@ -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");
|
||||
|
Reference in New Issue
Block a user