Description
Hi!
I have a problem with compiling the project in Arduino Ide 1.8.4. I have SMTP, Time libraries installed and created mywifi.h. During compilation, I get the following errors. What am I doing wrong?
Arduino:1.8.4 (Windows 10), Płytka:"Generic ESP8266 Module, 80 MHz, ck, 26 MHz, 40MHz, DIO, 512K (64K SPIFFS), v2 Prebuilt (MSS=536), Disabled, None, 115200"
UPnP:50: error: 'time' does not name a type
time *theTime = NULL;
^
C:\Users\czara\AppData\Local\Temp\arduino_modified_sketch_947209\UPnP.ino: In function 'void setup()':
UPnP:90: error: 'theTime' was not declared in this scope
theTime = new Time();
^
UPnP:90: error: expected type-specifier before 'Time'
theTime = new Time();
^
UPnP:90: error: expected ';' before 'Time'
C:\Users\czara\AppData\Local\Temp\arduino_modified_sketch_947209\AlarmController.ino: At global scope:
AlarmController:15: error: redefinition of 'int OTAprev'
static int OTAprev;
^
UPnP:15: error: 'int OTAprev' previously declared here
static int OTAprev;
^
AlarmController:24: error: redefinition of 'const char* ssid'
const char* ssid = MY_SSID;
^
UPnP:40: error: 'const char* ssid' previously defined here
const char* ssid = MY_SSID;
^
AlarmController:25: error: redefinition of 'const char* password'
const char* password = MY_WIFI_PASSWORD;
^
UPnP:41: error: 'const char* password' previously defined here
const char* password = MY_WIFI_PASSWORD;
^
AlarmController:27: error: redefinition of 'char* deviceURN'
char *deviceURN = "urn:schemas-upnp-org:device:ESP8266 Alarm Controller:1";
^
UPnP:45: error: 'char* deviceURN' previously defined here
char *deviceURN = "urn:schemas-upnp-org:device:ESP8266:1";
^
AlarmController:36: error: redefinition of 'WebServer HTTP'
WebServer HTTP(80);
^
UPnP:47: error: 'WebServer HTTP' previously declared here
WebServer HTTP(80);
^
AlarmController:37: error: redefinition of 'UPnPDevice device'
UPnPDevice device;
^
UPnP:48: error: 'UPnPDevice device' previously declared here
UPnPDevice device;
^
C:\Users\czara\AppData\Local\Temp\arduino_modified_sketch_947209\AlarmController.ino: In function 'void setup()':
AlarmController:39: error: redefinition of 'void setup()'
void setup() {
^
UPnP:53: error: 'void setup()' previously defined here
void setup() {
^
C:\Users\czara\AppData\Local\Temp\arduino_modified_sketch_947209\AlarmController.ino: In function 'void loop()':
AlarmController:268: error: redefinition of 'void loop()'
void loop() {
^
UPnP:248: error: 'void loop()' previously defined here
void loop() {
^
exit status 1
'time' does not name a type
Thank you for your help :)