diff --git a/Exosite.cpp b/Exosite.cpp index 78bf5e2..fc394e2 100644 --- a/Exosite.cpp +++ b/Exosite.cpp @@ -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) + client->connect(serverName,443); #else /*CC3200*/ client->connect(serverName,80); #endif /*CC3200*/ @@ -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()) { diff --git a/Exosite.h b/Exosite.h index 565687b..3119075 100644 --- a/Exosite.h +++ b/Exosite.h @@ -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 @@ -128,4 +128,4 @@ class Exosite unsigned long timestamp(); }; -#endif \ No newline at end of file +#endif diff --git a/examples/Murano-SmartLightBulb-ThingDevBoard/Murano-SmartLightBulb-ThingDevBoard.ino b/examples/Murano-SmartLightBulb-ThingDevBoard/Murano-SmartLightBulb-ThingDevBoard.ino index 30c251b..6cd8c71 100644 --- a/examples/Murano-SmartLightBulb-ThingDevBoard/Murano-SmartLightBulb-ThingDevBoard.ino +++ b/examples/Murano-SmartLightBulb-ThingDevBoard/Murano-SmartLightBulb-ThingDevBoard.ino @@ -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); @@ -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); @@ -317,4 +317,4 @@ void connectWifi() { // Print Some Useful Info Serial.print(F("wifi: MAC Address: ")); Serial.println(macString); -} \ No newline at end of file +}