Извините за офтоп, любопытно просто что можно измерять на глубинных насосах?serghei писал(а):... По такой технологии скрутки лежат в воде годами на глубинных насосах у меня.
Отправлено с моего Redmi Note 3 через Tapatalk
Модератор: Alex
Извините за офтоп, любопытно просто что можно измерять на глубинных насосах?serghei писал(а):... По такой технологии скрутки лежат в воде годами на глубинных насосах у меня.
Код: Выделить всё
n file included from D:\Project_All\SmartHouse\SmartHouse_1_6_0_0\arduino_mega_server\arduino_mega_server.ino:115:0:
C:\Program Files (x86)\Arduino\libraries\DS1307RTC/DS1307RTC.h:19:22: error: 'tmElements_t' has not been declared
static bool read(tmElements_t &tm);
^
C:\Program Files (x86)\Arduino\libraries\DS1307RTC/DS1307RTC.h:20:23: error: 'tmElements_t' has not been declared
static bool write(tmElements_t &tm);
^
D:\Project_All\SmartHouse\SmartHouse_1_6_0_0\arduino_mega_server\rtc.ino: In function 'void rtcInit()':
rtc:10: error: 'setSyncProvider' was not declared in this scope
setSyncProvider(getNtpTime);
^
rtc:14: error: 'setSyncProvider' was not declared in this scope
setSyncProvider(RTC.get); // get time from RTC
^
D:\Project_All\SmartHouse\SmartHouse_1_6_0_0\arduino_mega_server\rtc.ino: In function 'void rtcSync()':
rtc:24: error: 'setSyncProvider' was not declared in this scope
setSyncProvider(getNtpTime);
^
rtc:26: error: 'timeStatus' was not declared in this scope
if (timeStatus() != timeNotSet) {
^
rtc:26: error: 'timeNotSet' was not declared in this scope
if (timeStatus() != timeNotSet) {
^
D:\Project_All\SmartHouse\SmartHouse_1_6_0_0\arduino_mega_server\rtc.ino: In function 'void serialRTC()':
rtc:42: error: 'year' was not declared in this scope
Serial.print(year());
^
rtc:44: error: 'month' was not declared in this scope
printDigits(month());
^
rtc:46: error: 'day' was not declared in this scope
printDigits(day());
^
rtc:48: error: 'hour' was not declared in this scope
printDigits(hour());
^
rtc:50: error: 'minute' was not declared in this scope
printDigits(minute());
^
rtc:52: error: 'second' was not declared in this scope
printDigits(second());
^
D:\Project_All\SmartHouse\SmartHouse_1_6_0_0\arduino_mega_server\rtc.ino: In function 'void showDuration(time_t)':
rtc:73: error: 'SECS_PER_DAY' was not declared in this scope
if(duration >= SECS_PER_DAY){
^
rtc:78: error: 'SECS_PER_HOUR' was not declared in this scope
if(duration >= SECS_PER_HOUR){
^
rtc:83: error: 'SECS_PER_MIN' was not declared in this scope
if(duration >= SECS_PER_MIN){
^
D:\Project_All\SmartHouse\SmartHouse_1_6_0_0\arduino_mega_server\rtc.ino: In function 'void checkEvent(time_t*)':
rtc:94: error: 'now' was not declared in this scope
time_t timeNow = now();
^
D:\Project_All\SmartHouse\SmartHouse_1_6_0_0\arduino_mega_server\rtc.ino: In function 'void setNtpInterval()':
rtc:149: error: 'timeStatus' was not declared in this scope
if (timeStatus() == timeNotSet) {
^
rtc:149: error: 'timeNotSet' was not declared in this scope
if (timeStatus() == timeNotSet) {
^
rtc:150: error: 'setSyncInterval' was not declared in this scope
setSyncInterval(18);
^
D:\Project_All\SmartHouse\SmartHouse_1_6_0_0\arduino_mega_server\server_ajax.ino: In function 'String makeTime()':
server_ajax:226: error: 'hour' was not declared in this scope
s += makeDigits(hour());
^
server_ajax:227: error: 'second' was not declared in this scope
if (second() % 2 == 0) {s += " ";}
^
server_ajax:229: error: 'minute' was not declared in this scope
s += makeDigits(minute());
^
D:\Project_All\SmartHouse\SmartHouse_1_6_0_0\arduino_mega_server\server_ajax.ino: In function 'void responseDash(EthernetClient)':
server_ajax:789: error: 'day' was not declared in this scope
s += makeTag("day", "", String(day()));
^
server_ajax:790: error: 'month' was not declared in this scope
s += makeTag("month", "", String(month()));
^
server_ajax:791: error: 'weekday' was not declared in this scope
s += makeTag("weekday", "", String(weekday()));
^
D:\Project_All\SmartHouse\SmartHouse_1_6_0_0\arduino_mega_server\tntp.ino: In function 'time_t getNtpTime()':
tntp:54: error: 'setSyncInterval' was not declared in this scope
setSyncInterval(3600);
^
tntp:55: error: 'SECS_PER_HOUR' was not declared in this scope
return secsSince1900 - 2208988800UL + timeZone * SECS_PER_HOUR;
^
tntp:59: error: 'setSyncInterval' was not declared in this scope
setSyncInterval(18);
^
D:\Project_All\SmartHouse\SmartHouse_1_6_0_0\arduino_mega_server\upload.ino: In function 'void uploadWorks()':
upload:160: error: 'setSyncProvider' was not declared in this scope
setSyncProvider(RTC.get);
^
upload:162: error: 'timeStatus' was not declared in this scope
if (timeStatus() != timeSet) {
^
upload:162: error: 'timeSet' was not declared in this scope
if (timeStatus() != timeSet) {
^
exit status 1
'setSyncProvider' was not declared in this scope
arduino_mega_server_esp8266.inoannakin писал(а):Направьте на путь истинный.
Вот какими гвоздями и в каком месте прибить надпись " Для компиляции использовать IDE 1.6.5 r2" . Ну не будет АМС компилиться с другими версиями, если только руками править библиотеки....annakin писал(а): Значит скачал я опять Arduino IDE 1.8.0 ....
Направьте на путь истинный.