Changes for beta4 - use EthernetClient not Client
This commit is contained in:
		| @@ -5,7 +5,7 @@ | |||||||
| */ | */ | ||||||
|  |  | ||||||
| #include "PubSubClient.h" | #include "PubSubClient.h" | ||||||
| #include "Client.h" | #include "EthernetClient.h" | ||||||
| #include "string.h" | #include "string.h" | ||||||
|  |  | ||||||
| PubSubClient::PubSubClient() : _client() { | PubSubClient::PubSubClient() : _client() { | ||||||
|   | |||||||
| @@ -8,7 +8,7 @@ | |||||||
| #define PubSubClient_h | #define PubSubClient_h | ||||||
|  |  | ||||||
| #include "Ethernet.h" | #include "Ethernet.h" | ||||||
| #include "Client.h" | #include "EthernetClient.h" | ||||||
|  |  | ||||||
| #define MAX_PACKET_SIZE 128 | #define MAX_PACKET_SIZE 128 | ||||||
| #define KEEPALIVE 15000 // max value = 255000 | #define KEEPALIVE 15000 // max value = 255000 | ||||||
| @@ -33,7 +33,7 @@ | |||||||
|  |  | ||||||
| class PubSubClient { | class PubSubClient { | ||||||
| private: | private: | ||||||
|    Client _client; |    EthernetClient _client; | ||||||
|    uint8_t buffer[MAX_PACKET_SIZE]; |    uint8_t buffer[MAX_PACKET_SIZE]; | ||||||
|    uint8_t nextMsgId; |    uint8_t nextMsgId; | ||||||
|    long lastOutActivity; |    long lastOutActivity; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Nicholas O'Leary
					Nicholas O'Leary