Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ maintainer=Parse, LLC.
sentence=A library that provides access to Parse
paragraph=Provides convenience methods to access the REST API on Parse.com from Arduino.
url=https://github.com/ParsePlatform/parse-embedded-sdks
architectures=avr,samd
architectures=avr,samd,esp8266
5 changes: 5 additions & 0 deletions src/internal/ConnectionClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ typedef WiFiClient ConnectionClient;
#include <Bridge.h>
typedef Process ConnectionClient;

#elif ARDUINO_ARCH_ESP8266

#include <WiFiClientSecure.h>
typedef WiFiClientSecure ConnectionClient;

#endif

#endif //__CONNECTION_CLIENT_H__
2 changes: 1 addition & 1 deletion src/internal/ParseClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ParseClient {

void read(ConnectionClient* client, char* buf, int len);

#if defined (ARDUINO_SAMD_ZERO)
#if defined (ARDUINO_SAMD_ZERO) || defined(ARDUINO_ARCH_ESP8266)
char lastPushTime[41]; // PUSH_TIME_MAX_LEN
bool dataIsDirty;
char pushBuff[5];
Expand Down
2 changes: 1 addition & 1 deletion src/internal/ParsePush.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ParsePush : public ParseResponse {
protected:
ParsePush(ConnectionClient* pushClient);

#if defined (ARDUINO_SAMD_ZERO)
#if defined (ARDUINO_SAMD_ZERO) || defined(ARDUINO_ARCH_ESP8266)
char lookahead[5];
void setLookahead(const char *read_data);
void read();
Expand Down
4 changes: 2 additions & 2 deletions src/internal/ParseResponse.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ParseResponse {
bool isUserBuffer;
int p;
int resultCount;
#if defined (ARDUINO_SAMD_ZERO)
#if defined (ARDUINO_SAMD_ZERO) || defined(ARDUINO_ARCH_ESP8266)
long responseLength;
bool isChunked;
bool firstObject;
Expand All @@ -56,7 +56,7 @@ class ParseResponse {
virtual void read();
void readWithTimeout(int maxSec);

#if defined (ARDUINO_SAMD_ZERO)
#if defined (ARDUINO_SAMD_ZERO) || defined(ARDUINO_ARCH_ESP8266)
// Zero functions only - do nothing on Yun
void readLine(char *buff, int sz);
bool readJson(char *buff, int sz);
Expand Down
Loading