Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Esp2866 update #24

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
4 changes: 3 additions & 1 deletion Exosite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ boolean Exosite::writeRead(const char* writeString, const char* readString, char
client->stop();
#ifdef SL_DRIVER_VERSION
client->sslConnect(serverName,443);
#if defined(ESP8266)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be changed to:
#elif (ESP8266)

client->connect(serverName,443);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to fix the hardcoding of the port number. But not in this PR.

#else /*CC3200*/
client->connect(serverName,80);
#endif /*CC3200*/
Expand Down Expand Up @@ -982,7 +984,7 @@ boolean Exosite::provision(const char* vendorString, const char* modelString, co
if (!client->connected()) {
Serial.print("No Existing Connection, Opening One...");
client->stop();
client->connect(serverName,80);
client->connect(serverName,443);
}

if (client->connected()) {
Expand Down
4 changes: 2 additions & 2 deletions Exosite.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#ifndef Exosite_h
#define Exosite_h

#define ACTIVATOR_VERSION "2.5.3"
#define ACTIVATOR_VERSION "2.6.1"

// Select a Debug Level:
//#define EXOSITEDEBUG 1
Expand Down Expand Up @@ -128,4 +128,4 @@ class Exosite
unsigned long timestamp();
};

#endif
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ int comm_errors = 0;
int s = 0;
bool initial = true;

WiFiClient client;
WiFiClientSecure client;
Exosite exosite(&client);
DHT dht(DHTPIN, DHTTYPE);

Expand All @@ -85,7 +85,7 @@ void setup() {
Serial.begin(112500);
EEPROM.begin(40);
exosite.begin();
exosite.setDomain(productId".devmode-m2.exosite.io");
exosite.setDomain(productId".m2.exosite.io");

//SET UP IO PINS
pinMode(LED_PIN, OUTPUT);
Expand Down Expand Up @@ -317,4 +317,4 @@ void connectWifi() {
// Print Some Useful Info
Serial.print(F("wifi: MAC Address: "));
Serial.println(macString);
}
}