Код: Выделить всё
Network adapter: none
http://hi-lab.ru/arduino-mega-server/do ... tion/setup
Модератор: Alex
Код: Выделить всё
Network adapter: none
это весь лог из сериал порта, больше ничего нет.Alex писал(а):Во-первых лог неполный, во-вторых меня смущает строка
Это говорит о том, что вы скорее всего провели инсталляцию с отклонениями от инструкцииКод: Выделить всё
Network adapter: none
http://hi-lab.ru/arduino-mega-server/do ... tion/setup
Так это значит, что АМС у вас «завис».это весь лог из сериал порта, больше ничего нет.
Код: Выделить всё
In file included from E:\AMS\Sketches\ams\Arduino\arduino_mega_server\arduino_mega_server.ino:115:0:
C:\Users\mironov\Documents\Arduino\libraries\DS1307RTC/DS1307RTC.h:19:22: error: 'tmElements_t' has not been declared
static bool read(tmElements_t &tm);
^
C:\Users\mironov\Documents\Arduino\libraries\DS1307RTC/DS1307RTC.h:20:23: error: 'tmElements_t' has not been declared
static bool write(tmElements_t &tm);
^
E:\AMS\Sketches\ams\Arduino\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
^
E:\AMS\Sketches\ams\Arduino\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) {
^
E:\AMS\Sketches\ams\Arduino\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());
^
E:\AMS\Sketches\ams\Arduino\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){
^
E:\AMS\Sketches\ams\Arduino\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();
^
E:\AMS\Sketches\ams\Arduino\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);
^
E:\AMS\Sketches\ams\Arduino\arduino_mega_server\server.ino: In function 'void serverWorks()':
server:207: error: 'class EthernetServer' has no member named 'available_'
EthernetClient sclient = server.available_(sock);
^
E:\AMS\Sketches\ams\Arduino\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());
^
E:\AMS\Sketches\ams\Arduino\arduino_mega_server\server_ajax.ino: In function 'void setNoo()':
server_ajax:550: error: 'NOO_CHANNEL_1' was not declared in this scope
nooOn(NOO_CHANNEL_1);
^
server_ajax:550: error: 'nooOn' was not declared in this scope
nooOn(NOO_CHANNEL_1);
^
server_ajax:554: error: 'NOO_CHANNEL_1' was not declared in this scope
nooOff(NOO_CHANNEL_1);
^
server_ajax:554: error: 'nooOff' was not declared in this scope
nooOff(NOO_CHANNEL_1);
^
server_ajax:560: error: 'NOO_CHANNEL_2' was not declared in this scope
nooOn(NOO_CHANNEL_2);
^
server_ajax:560: error: 'nooOn' was not declared in this scope
nooOn(NOO_CHANNEL_2);
^
server_ajax:564: error: 'NOO_CHANNEL_2' was not declared in this scope
nooOff(NOO_CHANNEL_2);
^
server_ajax:564: error: 'nooOff' was not declared in this scope
nooOff(NOO_CHANNEL_2);
^
server_ajax:571: error: 'NOO_CHANNEL_3' was not declared in this scope
nooSetLedLastState(NOO_CHANNEL_3);
^
server_ajax:571: error: 'nooSetLedLastState' was not declared in this scope
nooSetLedLastState(NOO_CHANNEL_3);
^
server_ajax:575: error: 'NOO_CHANNEL_3' was not declared in this scope
nooOff(NOO_CHANNEL_3);
^
server_ajax:575: error: 'nooOff' was not declared in this scope
nooOff(NOO_CHANNEL_3);
^
server_ajax:599: error: 'nooBind' was not declared in this scope
nooBind(command);
^
server_ajax:601: error: 'nooUnbind' was not declared in this scope
nooUnbind(command);
^
server_ajax:619: error: 'NOO_CHANNEL_1' was not declared in this scope
nooLed(NOO_CHANNEL_1, 0, 0, 0);
^
server_ajax:619: error: 'nooLed' was not declared in this scope
nooLed(NOO_CHANNEL_1, 0, 0, 0);
^
server_ajax:620: error: 'NOO_CHANNEL_2' was not declared in this scope
nooValue(NOO_CHANNEL_2, commandCorrect);
^
server_ajax:620: error: 'nooValue' was not declared in this scope
nooValue(NOO_CHANNEL_2, commandCorrect);
^
server_ajax:636: error: 'NOO_CHANNEL_3' was not declared in this scope
case 10: nooRed (NOO_CHANNEL_3, 127); break;
^
server_ajax:636: error: 'nooRed' was not declared in this scope
case 10: nooRed (NOO_CHANNEL_3, 127); break;
^
server_ajax:637: error: 'nooGreen' was not declared in this scope
case 20: nooGreen (NOO_CHANNEL_3, 127); break;
^
server_ajax:638: error: 'nooBlue' was not declared in this scope
case 30: nooBlue (NOO_CHANNEL_3, 127); break;
^
server_ajax:639: error: 'nooYellow' was not declared in this scope
case 40: nooYellow (NOO_CHANNEL_3, 127); break;
^
server_ajax:640: error: 'nooMagenta' was not declared in this scope
case 50: nooMagenta(NOO_CHANNEL_3, 127); break;
^
server_ajax:641: error: 'nooCyan' was not declared in this scope
case 60: nooCyan (NOO_CHANNEL_3, 127); break;
^
server_ajax:642: error: 'nooGray' was not declared in this scope
case 70: nooGray (NOO_CHANNEL_3, 127); break;
^
E:\AMS\Sketches\ams\Arduino\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()));
^
E:\AMS\Sketches\ams\Arduino\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);
^
E:\AMS\Sketches\ams\Arduino\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
Код: Выделить всё
In file included from E:\AMS\Sketches\ams\Arduino\arduino_mega_server\arduino_mega_server.ino:115:0:
C:\Users\mironov\Documents\Arduino\libraries\DS1307RTC/DS1307RTC.h:19:22: error: 'tmElements_t' has not been declared
static bool read(tmElements_t &tm);
Код: Выделить всё
E:\AMS\Sketches\ams\Arduino\arduino_mega_server\rtc.ino: In function 'void showDuration(time_t)':
rtc:73: error: 'SECS_PER_DAY' was not declared in this scope