Compare commits

..

No commits in common. "ba1cc54d2e1e5083b145726fc260c1de04abbd0c" and "0a08e8d97495607f7bcd2fc33b82e35832244c5d" have entirely different histories.

View file

@ -1,6 +1,10 @@
// Standard ESP8266 libs from project folder
#include <ESP8266mDNS.h>
#include <ESP8266HTTPUpdateServer.h>
#include <ESP8266WiFi.h>
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <ESP8266HTTPClient.h>
#include <WiFiClient.h> // WiFiClient
@ -13,14 +17,6 @@
#include <WiFiManager.h> // WiFiManager from bib manager
#endif
#ifdef HTTP_CALL_ON_WINDSPEED_EXCEED
#include <ESP8266HTTPClient.h>
#endif
#ifdef HTTP_CALL_SEND_JSON_DATA
#include <ESP8266HTTPClient.h>
#endif
//*************************************************************************//
// check if some settings are correct
@ -88,7 +84,7 @@ void setup()
pinMode(ANEMOMETER_PIN, INPUT_PULLUP);
pinMode(A0, INPUT);
digitalWrite(STATUS_LED_PIN, HIGH);
digitalWrite(STATUS_LED_PIN, LOW);
#ifndef BAT_PINS_D34
debug("D5 D6 used as battery pins");
@ -115,7 +111,7 @@ void setup()
_battery_mode_main();
digitalWrite(STATUS_LED_PIN, HIGH);
digitalWrite(STATUS_LED_PIN, LOW);
criticalBatCheck();
@ -611,7 +607,7 @@ void _fsm_loop()
if (currentSensorData[SENSOR_WINDSPEED] >= HTTP_CALL_ON_WINDSPEED_EXCEED_MPS)
{
// windspeed exceeded send http call
digitalWrite(STATUS_LED_PIN, LOW);
digitalWrite(STATUS_LED_PIN, HIGH);
// call the url HTTP_CALL_ON_WINDSPEED_URL
WiFiClient client;
@ -630,7 +626,7 @@ void _fsm_loop()
http.end();
debug("Called windspeed exceed callout");
digitalWrite(STATUS_LED_PIN, HIGH);
digitalWrite(STATUS_LED_PIN, LOW);
}
#ifdef WEBUPDATER_FEATURE