1
0
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:
amcewen
2011-11-30 21:39:43 +00:00
parent 6e8d284c7b
commit 222f718705
2 changed files with 4 additions and 5 deletions

View File

@ -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");