File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ $(ESP_LIBS)/ESP8266WebServer \
77$(ESP_LIBS ) /ESP8266HTTPClient \
88$(ESP_LIBS ) /Ticker \
99$(ESP_LIBS ) /Hash \
10- ~ /Arduino/libraries/Blynk \
11- ~ /Arduino/libraries/pubsubclient \
12- ~ /Arduino/libraries/AM2320 \
13- ~ /Arduino/libraries/OneWire \
14- ~ /Arduino/libraries/DHTesp \
15- ~ /Arduino/libraries/DallasTemperature \
16- ~ /Arduino/libraries/OTF-Controller-Library \
17- ~ /Arduino/libraries/WebSockets \
10+ $( HOME ) /Arduino/libraries/Blynk \
11+ $( HOME ) /Arduino/libraries/pubsubclient \
12+ $( HOME ) /Arduino/libraries/AM2320 \
13+ $( HOME ) /Arduino/libraries/OneWire \
14+ $( HOME ) /Arduino/libraries/DHTesp \
15+ $( HOME ) /Arduino/libraries/DallasTemperature \
16+ $( HOME ) /Arduino/libraries/OTF-Controller-Library \
17+ $( HOME ) /Arduino/libraries/WebSockets \
1818.
1919
2020ESP_ROOT = $(HOME ) /esp8266_2.7.4/
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ static Ticker ip_ticker;
4949static Ticker restart_ticker;
5050
5151static WiFiClient wificlient;
52+ static WiFiClient httpclient;
5253PubSubClient mqttclient (wificlient);
5354String mqtt_topic;
5455String mqtt_id;
@@ -997,7 +998,7 @@ void perform_notify(String s) {
997998 // IFTTT notification
998999 if (og.options [OPTION_IFTT].sval .length ()>7 ) { // key size is at least 8
9991000 DEBUG_PRINTLN (" Sending IFTTT Notification" );
1000- http.begin (" http://maker.ifttt.com/trigger/opengarage/with/key/" +og.options [OPTION_IFTT].sval );
1001+ http.begin (httpclient, " http://maker.ifttt.com/trigger/opengarage/with/key/" +og.options [OPTION_IFTT].sval );
10011002 http.addHeader (" Content-Type" , " application/json" );
10021003 http.POST (" {\" value1\" :\" " +s+" \" }" );
10031004 String payload = http.getString ();
You can’t perform that action at this time.
0 commit comments