diff --git a/Compiled/og_1.2.0.bin b/Compiled/og_1.2.0.bin index bf4d014..9e3e420 100644 Binary files a/Compiled/og_1.2.0.bin and b/Compiled/og_1.2.0.bin differ diff --git a/OpenGarage/Makefile b/OpenGarage/Makefile index 17e2dc4..990ff98 100755 --- a/OpenGarage/Makefile +++ b/OpenGarage/Makefile @@ -7,14 +7,14 @@ $(ESP_LIBS)/ESP8266WebServer \ $(ESP_LIBS)/ESP8266HTTPClient \ $(ESP_LIBS)/Ticker \ $(ESP_LIBS)/Hash \ -~/Arduino/libraries/Blynk \ -~/Arduino/libraries/pubsubclient \ -~/Arduino/libraries/AM2320 \ -~/Arduino/libraries/OneWire \ -~/Arduino/libraries/DHTesp \ -~/Arduino/libraries/DallasTemperature \ -~/Arduino/libraries/OTF-Controller-Library \ -~/Arduino/libraries/WebSockets \ +$(HOME)/Arduino/libraries/Blynk \ +$(HOME)/Arduino/libraries/pubsubclient \ +$(HOME)/Arduino/libraries/AM2320 \ +$(HOME)/Arduino/libraries/OneWire \ +$(HOME)/Arduino/libraries/DHTesp \ +$(HOME)/Arduino/libraries/DallasTemperature \ +$(HOME)/Arduino/libraries/OTF-Controller-Library \ +$(HOME)/Arduino/libraries/WebSockets \ . ESP_ROOT = $(HOME)/esp8266_2.7.4/ diff --git a/OpenGarage/main.cpp b/OpenGarage/main.cpp index 11be5a3..8f741eb 100755 --- a/OpenGarage/main.cpp +++ b/OpenGarage/main.cpp @@ -49,6 +49,7 @@ static Ticker ip_ticker; static Ticker restart_ticker; static WiFiClient wificlient; +static WiFiClient httpclient; PubSubClient mqttclient(wificlient); String mqtt_topic; String mqtt_id; @@ -997,7 +998,7 @@ void perform_notify(String s) { // IFTTT notification if(og.options[OPTION_IFTT].sval.length()>7) { // key size is at least 8 DEBUG_PRINTLN(" Sending IFTTT Notification"); - http.begin("http://maker.ifttt.com/trigger/opengarage/with/key/"+og.options[OPTION_IFTT].sval); + http.begin(httpclient, "http://maker.ifttt.com/trigger/opengarage/with/key/"+og.options[OPTION_IFTT].sval); http.addHeader("Content-Type", "application/json"); http.POST("{\"value1\":\""+s+"\"}"); String payload = http.getString();