Skip to content

Commit 222f718

Browse files
committed
Updates to work with proper release of Arduino 1.0
1 parent 6e8d284 commit 222f718

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

HttpClient.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ int HttpClient::startRequest(const char* aServerName, uint16_t aServerPort, cons
5555

5656
if (iProxyPort)
5757
{
58-
if (!iClient->connect(iProxyAddress, iProxyPort))
58+
if (!iClient->connect(iProxyAddress, iProxyPort) > 0)
5959
{
6060
#ifdef LOGGING
6161
Serial.println("Proxy connection failed");
@@ -65,7 +65,7 @@ int HttpClient::startRequest(const char* aServerName, uint16_t aServerPort, cons
6565
}
6666
else
6767
{
68-
if (!iClient->connect(aServerName, aServerPort))
68+
if (!iClient->connect(aServerName, aServerPort) > 0)
6969
{
7070
#ifdef LOGGING
7171
Serial.println("Connection failed");
@@ -87,7 +87,7 @@ int HttpClient::startRequest(const IPAddress& aServerAddress, uint16_t aServerPo
8787

8888
if (iProxyPort)
8989
{
90-
if (!iClient->connect(iProxyAddress, iProxyPort))
90+
if (!iClient->connect(iProxyAddress, iProxyPort) > 0)
9191
{
9292
#ifdef LOGGING
9393
Serial.println("Proxy connection failed");
@@ -97,7 +97,7 @@ int HttpClient::startRequest(const IPAddress& aServerAddress, uint16_t aServerPo
9797
}
9898
else
9999
{
100-
if (!iClient->connect(aServerAddress, aServerPort))
100+
if (!iClient->connect(aServerAddress, aServerPort) > 0)
101101
{
102102
#ifdef LOGGING
103103
Serial.println("Connection failed");

HttpClient.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,6 @@ class HttpClient : public Client
277277

278278
// Inherited from Print
279279
virtual size_t write(uint8_t aByte) { return iClient-> write(aByte); };
280-
virtual size_t write(const char *aStr) { return iClient->write(aStr); };
281280
virtual size_t write(const uint8_t *aBuffer, size_t aSize) { return iClient->write(aBuffer, aSize); };
282281
// Inherited from Stream
283282
virtual int available() { return iClient->available(); };

0 commit comments

Comments
 (0)