summaryrefslogtreecommitdiffstats
path: root/f000_sijaneciot.ino
diff options
context:
space:
mode:
authorAnton L. Šijanec <sijanecantonluka@gmail.com>2020-04-16 21:37:16 +0200
committerAnton L. Šijanec <sijanecantonluka@gmail.com>2020-04-16 21:37:16 +0200
commitd8e4a5b71da218293214acc9c9b6be2ccb095271 (patch)
tree348d29f793c8774c2438d58d28b360452f624023 /f000_sijaneciot.ino
parentupdejtttttt (diff)
downloadsijaneciot-master.tar
sijaneciot-master.tar.gz
sijaneciot-master.tar.bz2
sijaneciot-master.tar.lz
sijaneciot-master.tar.xz
sijaneciot-master.tar.zst
sijaneciot-master.zip
Diffstat (limited to 'f000_sijaneciot.ino')
-rw-r--r--f000_sijaneciot.ino15
1 files changed, 11 insertions, 4 deletions
diff --git a/f000_sijaneciot.ino b/f000_sijaneciot.ino
index 7d98b88..da56405 100644
--- a/f000_sijaneciot.ino
+++ b/f000_sijaneciot.ino
@@ -6,9 +6,18 @@
#include <WiFiUdp.h>
#include <ESP8266FtpServer.h>
#include <ESP8266httpUpdate.h>
+// for weather
+#include <Wire.h>
+#include <SPI.h>
+#include <Adafruit_Sensor.h>
+#include <Adafruit_BME280.h>
+#include <BH1750.h>
+// end for weather
+
extern "C" {
#include <user_interface.h>
}
+#define DISALLOW_403 (false)
IPAddress ipas(10, 82, 66, 1);
IPAddress gatewayas(10, 82, 66, 1);
IPAddress subnetas(255, 255, 255, 0);
@@ -20,7 +29,7 @@ bool razhroscevanje = true;
ESP8266WebServer server(80);
FtpServer ftpSrv;
File fsUploadFile; // a File object to temporarily store the received file
-static const char ntpServerName[] = "0.pool.ntp.org";
+static const char ntpServerName[] = "us.pool.ntp.org";
//static const char ntpServerName[] = "time.nist.gov";
//static const char ntpServerName[] = "time-a.timefreq.bldrdoc.gov";
//static const char ntpServerName[] = "time-b.timefreq.bldrdoc.gov";
@@ -35,7 +44,5 @@ const int timeZone = 1; // Central European Time
WiFiUDP Udp;
unsigned int localPort = 8888; // local port to listen for UDP packets
-time_t getNtpTime();
-void digitalClockDisplay();
-void printDigits(int digits);
+time_t getTime();
void sendNTPpacket(IPAddress &address);