Advertisement
Guest User

Untitled

a guest
Feb 8th, 2018
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 82.66 KB | None | 0 0
  1. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino: In function 'uint32_t GetRtcSettingsHash()':
  2.  
  3. settings:50: error: 'RtcSettings' was not declared in this scope
  4.  
  5. uint8_t *bytes = (uint8_t*)&RtcSettings;
  6.  
  7. ^
  8.  
  9. settings:52: error: 'RTCMEM' was not declared in this scope
  10.  
  11. for (uint16_t i = 0; i < sizeof(RTCMEM); i++) {
  12.  
  13. ^
  14.  
  15. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino: In function 'void RtcSettingsSave()':
  16.  
  17. settings:61: error: 'RtcSettings' was not declared in this scope
  18.  
  19. RtcSettings.valid = RTC_MEM_VALID;
  20.  
  21. ^
  22.  
  23. settings:62: error: 'RTCMEM' was not declared in this scope
  24.  
  25. ESP.rtcUserMemoryWrite(100, (uint32_t*)&RtcSettings, sizeof(RTCMEM));
  26.  
  27. ^
  28.  
  29. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino: In function 'void RtcSettingsLoad()':
  30.  
  31. settings:73: error: 'RtcSettings' was not declared in this scope
  32.  
  33. ESP.rtcUserMemoryRead(100, (uint32_t*)&RtcSettings, sizeof(RTCMEM));
  34.  
  35. ^
  36.  
  37. settings:73: error: 'RTCMEM' was not declared in this scope
  38.  
  39. ESP.rtcUserMemoryRead(100, (uint32_t*)&RtcSettings, sizeof(RTCMEM));
  40.  
  41. ^
  42.  
  43. settings:81: error: 'Settings' was not declared in this scope
  44.  
  45. RtcSettings.energy_kWhtoday = Settings.energy_kWhtoday;
  46.  
  47. ^
  48.  
  49. settings:83: error: 'MAX_COUNTERS' was not declared in this scope
  50.  
  51. for (byte i = 0; i < MAX_COUNTERS; i++) {
  52.  
  53. ^
  54.  
  55. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino: In function 'boolean RtcSettingsValid()':
  56.  
  57. settings:94: error: 'RtcSettings' was not declared in this scope
  58.  
  59. return (RTC_MEM_VALID == RtcSettings.valid);
  60.  
  61. ^
  62.  
  63. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino: In function 'uint32_t GetSettingsHash()':
  64.  
  65. settings:185: error: 'Settings' was not declared in this scope
  66.  
  67. uint8_t *bytes = (uint8_t*)&Settings;
  68.  
  69. ^
  70.  
  71. settings:187: error: 'SYSCFG' was not declared in this scope
  72.  
  73. for (uint16_t i = 0; i < sizeof(SYSCFG); i++) {
  74.  
  75. ^
  76.  
  77. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino: In function 'void SettingsSaveAll()':
  78.  
  79. settings:195: error: 'Settings' was not declared in this scope
  80.  
  81. if (Settings.flag.save_state) {
  82.  
  83. ^
  84.  
  85. settings:196: error: 'power' was not declared in this scope
  86.  
  87. Settings.power = power;
  88.  
  89. ^
  90.  
  91. settings:200: error: 'FUNC_SAVE_BEFORE_RESTART' was not declared in this scope
  92.  
  93. XsnsCall(FUNC_SAVE_BEFORE_RESTART);
  94.  
  95. ^
  96.  
  97. settings:200: error: 'XsnsCall' was not declared in this scope
  98.  
  99. XsnsCall(FUNC_SAVE_BEFORE_RESTART);
  100.  
  101. ^
  102.  
  103. settings:201: error: 'SettingsSave' was not declared in this scope
  104.  
  105. SettingsSave(0);
  106.  
  107. ^
  108.  
  109. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino: In function 'void SettingsSave(byte)':
  110.  
  111. settings:226: error: 'stop_flash_rotate' was not declared in this scope
  112.  
  113. stop_flash_rotate = 1;
  114.  
  115. ^
  116.  
  117. settings:231: error: 'stop_flash_rotate' was not declared in this scope
  118.  
  119. if (stop_flash_rotate) {
  120.  
  121. ^
  122.  
  123. settings:239: error: 'Settings' was not declared in this scope
  124.  
  125. Settings.save_flag++;
  126.  
  127. ^
  128.  
  129. settings:242: error: 'SYSCFG' was not declared in this scope
  130.  
  131. spi_flash_write(settings_location * SPI_FLASH_SEC_SIZE, (uint32*)&Settings, sizeof(SYSCFG));
  132.  
  133. ^
  134.  
  135. settings:244: error: 'stop_flash_rotate' was not declared in this scope
  136.  
  137. if (!stop_flash_rotate && rotate) {
  138.  
  139. ^
  140.  
  141. settings:252: error: 'log_data' was not declared in this scope
  142.  
  143. snprintf_P(log_data, sizeof(log_data), PSTR(D_LOG_CONFIG D_SAVED_TO_FLASH_AT " %X, " D_COUNT " %d, " D_BYTES " %d"),
  144.  
  145. ^
  146.  
  147. In file included from H:\Arduino\arduino-1.8.5\portable\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/Arduino.h:241:0,
  148.  
  149. from sketch\_releasenotes.ino.cpp:1:
  150.  
  151. settings:252: error: 'D_LOG_CONFIG' was not declared in this scope
  152.  
  153. snprintf_P(log_data, sizeof(log_data), PSTR(D_LOG_CONFIG D_SAVED_TO_FLASH_AT " %X, " D_COUNT " %d, " D_BYTES " %d"),
  154.  
  155. ^
  156.  
  157. H:\Arduino\arduino-1.8.5\portable\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/pgmspace.h:16:68: note: in definition of macro 'PSTR'
  158.  
  159. #define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); &__c[0];}))
  160.  
  161. ^
  162.  
  163. settings:252: error: expected ')' before 'D_SAVED_TO_FLASH_AT'
  164.  
  165. snprintf_P(log_data, sizeof(log_data), PSTR(D_LOG_CONFIG D_SAVED_TO_FLASH_AT " %X, " D_COUNT " %d, " D_BYTES " %d"),
  166.  
  167. ^
  168.  
  169. H:\Arduino\arduino-1.8.5\portable\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/pgmspace.h:16:68: note: in definition of macro 'PSTR'
  170.  
  171. #define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); &__c[0];}))
  172.  
  173. ^
  174.  
  175. settings:254: error: 'LOG_LEVEL_DEBUG' was not declared in this scope
  176.  
  177. AddLog(LOG_LEVEL_DEBUG);
  178.  
  179. ^
  180.  
  181. settings:254: error: 'AddLog' was not declared in this scope
  182.  
  183. AddLog(LOG_LEVEL_DEBUG);
  184.  
  185. ^
  186.  
  187. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino: In function 'void SettingsLoad()':
  188.  
  189. settings:274: error: 'Settings' was not declared in this scope
  190.  
  191. spi_flash_read(settings_location * SPI_FLASH_SEC_SIZE, (uint32*)&Settings, sizeof(SYSCFG));
  192.  
  193. ^
  194.  
  195. settings:274: error: 'SYSCFG' was not declared in this scope
  196.  
  197. spi_flash_read(settings_location * SPI_FLASH_SEC_SIZE, (uint32*)&Settings, sizeof(SYSCFG));
  198.  
  199. ^
  200.  
  201. settings:286: error: 'log_data' was not declared in this scope
  202.  
  203. snprintf_P(log_data, sizeof(log_data), PSTR(D_LOG_CONFIG D_LOADED_FROM_FLASH_AT " %X, " D_COUNT " %d"),
  204.  
  205. ^
  206.  
  207. In file included from H:\Arduino\arduino-1.8.5\portable\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/Arduino.h:241:0,
  208.  
  209. from sketch\_releasenotes.ino.cpp:1:
  210.  
  211. settings:286: error: 'D_LOG_CONFIG' was not declared in this scope
  212.  
  213. snprintf_P(log_data, sizeof(log_data), PSTR(D_LOG_CONFIG D_LOADED_FROM_FLASH_AT " %X, " D_COUNT " %d"),
  214.  
  215. ^
  216.  
  217. H:\Arduino\arduino-1.8.5\portable\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/pgmspace.h:16:68: note: in definition of macro 'PSTR'
  218.  
  219. #define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); &__c[0];}))
  220.  
  221. ^
  222.  
  223. settings:286: error: expected ')' before 'D_LOADED_FROM_FLASH_AT'
  224.  
  225. snprintf_P(log_data, sizeof(log_data), PSTR(D_LOG_CONFIG D_LOADED_FROM_FLASH_AT " %X, " D_COUNT " %d"),
  226.  
  227. ^
  228.  
  229. H:\Arduino\arduino-1.8.5\portable\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/pgmspace.h:16:68: note: in definition of macro 'PSTR'
  230.  
  231. #define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); &__c[0];}))
  232.  
  233. ^
  234.  
  235. settings:287: error: 'Settings' was not declared in this scope
  236.  
  237. settings_location, Settings.save_flag);
  238.  
  239. ^
  240.  
  241. settings:288: error: 'LOG_LEVEL_DEBUG' was not declared in this scope
  242.  
  243. AddLog(LOG_LEVEL_DEBUG);
  244.  
  245. ^
  246.  
  247. settings:288: error: 'AddLog' was not declared in this scope
  248.  
  249. AddLog(LOG_LEVEL_DEBUG);
  250.  
  251. ^
  252.  
  253. settings:289: error: 'CFG_HOLDER' was not declared in this scope
  254.  
  255. if (Settings.cfg_holder != CFG_HOLDER) {
  256.  
  257. ^
  258.  
  259. settings:292: error: 'SYSCFG' was not declared in this scope
  260.  
  261. spi_flash_read((SETTINGS_LOCATION_3) * SPI_FLASH_SEC_SIZE, (uint32*)&Settings, sizeof(SYSCFG));
  262.  
  263. ^
  264.  
  265. settings:298: error: 'SettingsDefault' was not declared in this scope
  266.  
  267. SettingsDefault();
  268.  
  269. ^
  270.  
  271. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino: In function 'void SettingsErase()':
  272.  
  273. settings:313: error: 'LOG_LEVEL_DEBUG_MORE' was not declared in this scope
  274.  
  275. boolean _serialoutput = (LOG_LEVEL_DEBUG_MORE <= seriallog_level);
  276.  
  277. ^
  278.  
  279. settings:313: error: 'seriallog_level' was not declared in this scope
  280.  
  281. boolean _serialoutput = (LOG_LEVEL_DEBUG_MORE <= seriallog_level);
  282.  
  283. ^
  284.  
  285. settings:315: error: 'log_data' was not declared in this scope
  286.  
  287. snprintf_P(log_data, sizeof(log_data), PSTR(D_LOG_APPLICATION D_ERASE " %d " D_UNIT_SECTORS), _sectorEnd - _sectorStart);
  288.  
  289. ^
  290.  
  291. In file included from H:\Arduino\arduino-1.8.5\portable\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/Arduino.h:241:0,
  292.  
  293. from sketch\_releasenotes.ino.cpp:1:
  294.  
  295. settings:315: error: 'D_LOG_APPLICATION' was not declared in this scope
  296.  
  297. snprintf_P(log_data, sizeof(log_data), PSTR(D_LOG_APPLICATION D_ERASE " %d " D_UNIT_SECTORS), _sectorEnd - _sectorStart);
  298.  
  299. ^
  300.  
  301. H:\Arduino\arduino-1.8.5\portable\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/pgmspace.h:16:68: note: in definition of macro 'PSTR'
  302.  
  303. #define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); &__c[0];}))
  304.  
  305. ^
  306.  
  307. settings:315: error: expected ')' before 'D_ERASE'
  308.  
  309. snprintf_P(log_data, sizeof(log_data), PSTR(D_LOG_APPLICATION D_ERASE " %d " D_UNIT_SECTORS), _sectorEnd - _sectorStart);
  310.  
  311. ^
  312.  
  313. H:\Arduino\arduino-1.8.5\portable\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/pgmspace.h:16:68: note: in definition of macro 'PSTR'
  314.  
  315. #define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); &__c[0];}))
  316.  
  317. ^
  318.  
  319. settings:316: error: 'LOG_LEVEL_DEBUG' was not declared in this scope
  320.  
  321. AddLog(LOG_LEVEL_DEBUG);
  322.  
  323. ^
  324.  
  325. settings:316: error: 'AddLog' was not declared in this scope
  326.  
  327. AddLog(LOG_LEVEL_DEBUG);
  328.  
  329. ^
  330.  
  331. In file included from H:\Arduino\arduino-1.8.5\portable\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/Arduino.h:244:0,
  332.  
  333. from sketch\_releasenotes.ino.cpp:1:
  334.  
  335. settings:323: error: 'D_LOG_APPLICATION' was not declared in this scope
  336.  
  337. Serial.print(F(D_LOG_APPLICATION D_ERASED_SECTOR " "));
  338.  
  339. ^
  340.  
  341. H:\Arduino\arduino-1.8.5\portable\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/WString.h:38:76: note: in definition of macro 'FPSTR'
  342.  
  343. #define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
  344.  
  345. ^
  346.  
  347. H:\Arduino\arduino-1.8.5\portable\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/WString.h:39:34: note: in expansion of macro 'PSTR'
  348.  
  349. #define F(string_literal) (FPSTR(PSTR(string_literal)))
  350.  
  351. ^
  352.  
  353. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino:323:20: note: in expansion of macro 'F'
  354.  
  355. Serial.print(F(D_LOG_APPLICATION D_ERASED_SECTOR " "));
  356.  
  357. ^
  358.  
  359. settings:323: error: expected ')' before 'D_ERASED_SECTOR'
  360.  
  361. Serial.print(F(D_LOG_APPLICATION D_ERASED_SECTOR " "));
  362.  
  363. ^
  364.  
  365. H:\Arduino\arduino-1.8.5\portable\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/WString.h:38:76: note: in definition of macro 'FPSTR'
  366.  
  367. #define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
  368.  
  369. ^
  370.  
  371. H:\Arduino\arduino-1.8.5\portable\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/WString.h:39:34: note: in expansion of macro 'PSTR'
  372.  
  373. #define F(string_literal) (FPSTR(PSTR(string_literal)))
  374.  
  375. ^
  376.  
  377. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino:323:20: note: in expansion of macro 'F'
  378.  
  379. Serial.print(F(D_LOG_APPLICATION D_ERASED_SECTOR " "));
  380.  
  381. ^
  382.  
  383. settings:326: error: expected ')' before 'D_OK'
  384.  
  385. Serial.println(F(" " D_OK));
  386.  
  387. ^
  388.  
  389. H:\Arduino\arduino-1.8.5\portable\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/WString.h:38:76: note: in definition of macro 'FPSTR'
  390.  
  391. #define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
  392.  
  393. ^
  394.  
  395. H:\Arduino\arduino-1.8.5\portable\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/WString.h:39:34: note: in expansion of macro 'PSTR'
  396.  
  397. #define F(string_literal) (FPSTR(PSTR(string_literal)))
  398.  
  399. ^
  400.  
  401. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino:326:24: note: in expansion of macro 'F'
  402.  
  403. Serial.println(F(" " D_OK));
  404.  
  405. ^
  406.  
  407. settings:328: error: expected ')' before 'D_ERROR'
  408.  
  409. Serial.println(F(" " D_ERROR));
  410.  
  411. ^
  412.  
  413. H:\Arduino\arduino-1.8.5\portable\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/WString.h:38:76: note: in definition of macro 'FPSTR'
  414.  
  415. #define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
  416.  
  417. ^
  418.  
  419. H:\Arduino\arduino-1.8.5\portable\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/WString.h:39:34: note: in expansion of macro 'PSTR'
  420.  
  421. #define F(string_literal) (FPSTR(PSTR(string_literal)))
  422.  
  423. ^
  424.  
  425. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino:328:24: note: in expansion of macro 'F'
  426.  
  427. Serial.println(F(" " D_ERROR));
  428.  
  429. ^
  430.  
  431. settings:332: error: 'OsWatchLoop' was not declared in this scope
  432.  
  433. OsWatchLoop();
  434.  
  435. ^
  436.  
  437. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino: In function 'void SettingsDump(char*)':
  438.  
  439. settings:346: error: 'Settings' was not declared in this scope
  440.  
  441. uint8_t *buffer = (uint8_t *) &Settings;
  442.  
  443. ^
  444.  
  445. settings:347: error: 'SYSCFG' was not declared in this scope
  446.  
  447. maxrow = ((sizeof(SYSCFG)+CFG_COLS)/CFG_COLS);
  448.  
  449. ^
  450.  
  451. settings:367: error: 'log_data' was not declared in this scope
  452.  
  453. snprintf_P(log_data, sizeof(log_data), PSTR("%04X:"), idx);
  454.  
  455. ^
  456.  
  457. settings:382: error: 'LOG_LEVEL_INFO' was not declared in this scope
  458.  
  459. AddLog(LOG_LEVEL_INFO);
  460.  
  461. ^
  462.  
  463. settings:382: error: 'AddLog' was not declared in this scope
  464.  
  465. AddLog(LOG_LEVEL_INFO);
  466.  
  467. ^
  468.  
  469. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino: In function 'void SettingsDefault()':
  470.  
  471. settings:391: error: 'LOG_LEVEL_NONE' was not declared in this scope
  472.  
  473. AddLog_P(LOG_LEVEL_NONE, PSTR(D_LOG_CONFIG D_USE_DEFAULTS));
  474.  
  475. ^
  476.  
  477. In file included from H:\Arduino\arduino-1.8.5\portable\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/Arduino.h:241:0,
  478.  
  479. from sketch\_releasenotes.ino.cpp:1:
  480.  
  481. settings:391: error: 'D_LOG_CONFIG' was not declared in this scope
  482.  
  483. AddLog_P(LOG_LEVEL_NONE, PSTR(D_LOG_CONFIG D_USE_DEFAULTS));
  484.  
  485. ^
  486.  
  487. H:\Arduino\arduino-1.8.5\portable\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/pgmspace.h:16:68: note: in definition of macro 'PSTR'
  488.  
  489. #define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); &__c[0];}))
  490.  
  491. ^
  492.  
  493. settings:391: error: expected ')' before 'D_USE_DEFAULTS'
  494.  
  495. AddLog_P(LOG_LEVEL_NONE, PSTR(D_LOG_CONFIG D_USE_DEFAULTS));
  496.  
  497. ^
  498.  
  499. H:\Arduino\arduino-1.8.5\portable\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/pgmspace.h:16:68: note: in definition of macro 'PSTR'
  500.  
  501. #define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); &__c[0];}))
  502.  
  503. ^
  504.  
  505. settings:391: error: 'AddLog_P' was not declared in this scope
  506.  
  507. AddLog_P(LOG_LEVEL_NONE, PSTR(D_LOG_CONFIG D_USE_DEFAULTS));
  508.  
  509. ^
  510.  
  511. settings:392: error: 'SettingsDefaultSet1' was not declared in this scope
  512.  
  513. SettingsDefaultSet1();
  514.  
  515. ^
  516.  
  517. settings:393: error: 'SettingsDefaultSet2' was not declared in this scope
  518.  
  519. SettingsDefaultSet2();
  520.  
  521. ^
  522.  
  523. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino: In function 'void SettingsDefaultSet1()':
  524.  
  525. settings:399: error: 'Settings' was not declared in this scope
  526.  
  527. memset(&Settings, 0x00, sizeof(SYSCFG));
  528.  
  529. ^
  530.  
  531. settings:399: error: 'SYSCFG' was not declared in this scope
  532.  
  533. memset(&Settings, 0x00, sizeof(SYSCFG));
  534.  
  535. ^
  536.  
  537. settings:401: error: 'CFG_HOLDER' was not declared in this scope
  538.  
  539. Settings.cfg_holder = CFG_HOLDER;
  540.  
  541. ^
  542.  
  543. settings:403: error: 'VERSION' was not declared in this scope
  544.  
  545. Settings.version = VERSION;
  546.  
  547. ^
  548.  
  549. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino: In function 'void SettingsDefaultSet2()':
  550.  
  551. settings:409: error: 'Settings' was not declared in this scope
  552.  
  553. memset((char*)&Settings +16, 0x00, sizeof(SYSCFG) -16);
  554.  
  555. ^
  556.  
  557. settings:409: error: 'SYSCFG' was not declared in this scope
  558.  
  559. memset((char*)&Settings +16, 0x00, sizeof(SYSCFG) -16);
  560.  
  561. ^
  562.  
  563. settings:411: error: 'SAVE_STATE' was not declared in this scope
  564.  
  565. Settings.flag.save_state = SAVE_STATE;
  566.  
  567. ^
  568.  
  569. settings:414: error: 'MQTT_USE' was not declared in this scope
  570.  
  571. Settings.flag.mqtt_enabled = MQTT_USE;
  572.  
  573. ^
  574.  
  575. settings:416: error: 'MQTT_POWER_RETAIN' was not declared in this scope
  576.  
  577. Settings.flag.mqtt_power_retain = MQTT_POWER_RETAIN;
  578.  
  579. ^
  580.  
  581. settings:417: error: 'MQTT_BUTTON_RETAIN' was not declared in this scope
  582.  
  583. Settings.flag.mqtt_button_retain = MQTT_BUTTON_RETAIN;
  584.  
  585. ^
  586.  
  587. settings:418: error: 'MQTT_SWITCH_RETAIN' was not declared in this scope
  588.  
  589. Settings.flag.mqtt_switch_retain = MQTT_SWITCH_RETAIN;
  590.  
  591. ^
  592.  
  593. settings:25: error: 'EMUL_NONE' was not declared in this scope
  594.  
  595. #define EMULATION EMUL_NONE // [Emulation] Select Belkin WeMo (single relay/light) or Hue Bridge emulation (multi relay/light) (EMUL_NONE, EMUL_WEMO or EMUL_HUE)
  596.  
  597. ^
  598.  
  599. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino:420:30: note: in expansion of macro 'EMULATION'
  600.  
  601. Settings.flag2.emulation = EMULATION;
  602.  
  603. ^
  604.  
  605. settings:422: error: 'SAVE_DATA' was not declared in this scope
  606.  
  607. Settings.save_data = SAVE_DATA;
  608.  
  609. ^
  610.  
  611. settings:423: error: 'APP_TIMEZONE' was not declared in this scope
  612.  
  613. Settings.timezone = APP_TIMEZONE;
  614.  
  615. ^
  616.  
  617. settings:424: error: 'OTA_URL' was not declared in this scope
  618.  
  619. strlcpy(Settings.ota_url, OTA_URL, sizeof(Settings.ota_url));
  620.  
  621. ^
  622.  
  623. settings:426: error: 'SERIAL_LOG_LEVEL' was not declared in this scope
  624.  
  625. Settings.seriallog_level = SERIAL_LOG_LEVEL;
  626.  
  627. ^
  628.  
  629. settings:428: error: 'STA_SSID1' was not declared in this scope
  630.  
  631. strlcpy(Settings.sta_ssid[0], STA_SSID1, sizeof(Settings.sta_ssid[0]));
  632.  
  633. ^
  634.  
  635. settings:429: error: 'STA_PASS1' was not declared in this scope
  636.  
  637. strlcpy(Settings.sta_pwd[0], STA_PASS1, sizeof(Settings.sta_pwd[0]));
  638.  
  639. ^
  640.  
  641. settings:430: error: 'STA_SSID2' was not declared in this scope
  642.  
  643. strlcpy(Settings.sta_ssid[1], STA_SSID2, sizeof(Settings.sta_ssid[1]));
  644.  
  645. ^
  646.  
  647. settings:431: error: 'STA_PASS2' was not declared in this scope
  648.  
  649. strlcpy(Settings.sta_pwd[1], STA_PASS2, sizeof(Settings.sta_pwd[1]));
  650.  
  651. ^
  652.  
  653. settings:432: error: 'WIFI_HOSTNAME' was not declared in this scope
  654.  
  655. strlcpy(Settings.hostname, WIFI_HOSTNAME, sizeof(Settings.hostname));
  656.  
  657. ^
  658.  
  659. settings:433: error: 'WIFI_CONFIG_TOOL' was not declared in this scope
  660.  
  661. Settings.sta_config = WIFI_CONFIG_TOOL;
  662.  
  663. ^
  664.  
  665. settings:434: error: 'SYS_LOG_HOST' was not declared in this scope
  666.  
  667. strlcpy(Settings.syslog_host, SYS_LOG_HOST, sizeof(Settings.syslog_host));
  668.  
  669. ^
  670.  
  671. settings:435: error: 'SYS_LOG_PORT' was not declared in this scope
  672.  
  673. Settings.syslog_port = SYS_LOG_PORT;
  674.  
  675. ^
  676.  
  677. settings:436: error: 'SYS_LOG_LEVEL' was not declared in this scope
  678.  
  679. Settings.syslog_level = SYS_LOG_LEVEL;
  680.  
  681. ^
  682.  
  683. settings:437: error: 'WEB_SERVER' was not declared in this scope
  684.  
  685. Settings.webserver = WEB_SERVER;
  686.  
  687. ^
  688.  
  689. settings:438: error: 'WEB_LOG_LEVEL' was not declared in this scope
  690.  
  691. Settings.weblog_level = WEB_LOG_LEVEL;
  692.  
  693. ^
  694.  
  695. settings:440: error: 'MQTT_FINGERPRINT' was not declared in this scope
  696.  
  697. strlcpy(Settings.mqtt_fingerprint, MQTT_FINGERPRINT, sizeof(Settings.mqtt_fingerprint));
  698.  
  699. ^
  700.  
  701. settings:441: error: 'MQTT_HOST' was not declared in this scope
  702.  
  703. strlcpy(Settings.mqtt_host, MQTT_HOST, sizeof(Settings.mqtt_host));
  704.  
  705. ^
  706.  
  707. settings:442: error: 'MQTT_PORT' was not declared in this scope
  708.  
  709. Settings.mqtt_port = MQTT_PORT;
  710.  
  711. ^
  712.  
  713. settings:443: error: 'MQTT_CLIENT_ID' was not declared in this scope
  714.  
  715. strlcpy(Settings.mqtt_client, MQTT_CLIENT_ID, sizeof(Settings.mqtt_client));
  716.  
  717. ^
  718.  
  719. settings:444: error: 'MQTT_USER' was not declared in this scope
  720.  
  721. strlcpy(Settings.mqtt_user, MQTT_USER, sizeof(Settings.mqtt_user));
  722.  
  723. ^
  724.  
  725. settings:445: error: 'MQTT_PASS' was not declared in this scope
  726.  
  727. strlcpy(Settings.mqtt_pwd, MQTT_PASS, sizeof(Settings.mqtt_pwd));
  728.  
  729. ^
  730.  
  731. settings:446: error: 'MQTT_TOPIC' was not declared in this scope
  732.  
  733. strlcpy(Settings.mqtt_topic, MQTT_TOPIC, sizeof(Settings.mqtt_topic));
  734.  
  735. ^
  736.  
  737. settings:448: error: 'MQTT_GRPTOPIC' was not declared in this scope
  738.  
  739. strlcpy(Settings.mqtt_grptopic, MQTT_GRPTOPIC, sizeof(Settings.mqtt_grptopic));
  740.  
  741. ^
  742.  
  743. settings:449: error: 'TELE_PERIOD' was not declared in this scope
  744.  
  745. Settings.tele_period = TELE_PERIOD;
  746.  
  747. ^
  748.  
  749. settings:451: error: 'APP_POWER' was not declared in this scope
  750.  
  751. Settings.power = APP_POWER;
  752.  
  753. ^
  754.  
  755. settings:452: error: 'APP_POWERON_STATE' was not declared in this scope
  756.  
  757. Settings.poweronstate = APP_POWERON_STATE;
  758.  
  759. ^
  760.  
  761. settings:453: error: 'APP_LEDSTATE' was not declared in this scope
  762.  
  763. Settings.ledstate = APP_LEDSTATE;
  764.  
  765. ^
  766.  
  767. settings:454: error: 'APP_BLINKTIME' was not declared in this scope
  768.  
  769. Settings.blinktime = APP_BLINKTIME;
  770.  
  771. ^
  772.  
  773. settings:455: error: 'APP_BLINKCOUNT' was not declared in this scope
  774.  
  775. Settings.blinkcount = APP_BLINKCOUNT;
  776.  
  777. ^
  778.  
  779. settings:456: error: 'APP_SLEEP' was not declared in this scope
  780.  
  781. Settings.sleep = APP_SLEEP;
  782.  
  783. ^
  784.  
  785. settings:459: error: 'MAX_SWITCHES' was not declared in this scope
  786.  
  787. for (byte i = 0; i < MAX_SWITCHES; i++) {
  788.  
  789. ^
  790.  
  791. settings:460: error: 'SWITCH_MODE' was not declared in this scope
  792.  
  793. Settings.switchmode[i] = SWITCH_MODE;
  794.  
  795. ^
  796.  
  797. settings:466: error: 'HLW_PREF_PULSE' was not declared in this scope
  798.  
  799. Settings.hlw_power_calibration = HLW_PREF_PULSE;
  800.  
  801. ^
  802.  
  803. settings:467: error: 'HLW_UREF_PULSE' was not declared in this scope
  804.  
  805. Settings.hlw_voltage_calibration = HLW_UREF_PULSE;
  806.  
  807. ^
  808.  
  809. settings:468: error: 'HLW_IREF_PULSE' was not declared in this scope
  810.  
  811. Settings.hlw_current_calibration = HLW_IREF_PULSE;
  812.  
  813. ^
  814.  
  815. settings:479: error: 'MAX_POWER_HOLD' was not declared in this scope
  816.  
  817. Settings.energy_max_power_limit_hold = MAX_POWER_HOLD;
  818.  
  819. ^
  820.  
  821. settings:480: error: 'MAX_POWER_WINDOW' was not declared in this scope
  822.  
  823. Settings.energy_max_power_limit_window = MAX_POWER_WINDOW;
  824.  
  825. ^
  826.  
  827. settings:482: error: 'SAFE_POWER_HOLD' was not declared in this scope
  828.  
  829. Settings.energy_max_power_safe_limit_hold = SAFE_POWER_HOLD;
  830.  
  831. ^
  832.  
  833. settings:483: error: 'SAFE_POWER_WINDOW' was not declared in this scope
  834.  
  835. Settings.energy_max_power_safe_limit_window = SAFE_POWER_WINDOW;
  836.  
  837. ^
  838.  
  839. settings:487: error: 'SettingsDefaultSet_3_2_4' was not declared in this scope
  840.  
  841. SettingsDefaultSet_3_2_4();
  842.  
  843. ^
  844.  
  845. settings:489: error: 'FRIENDLY_NAME' was not declared in this scope
  846.  
  847. strlcpy(Settings.friendlyname[0], FRIENDLY_NAME, sizeof(Settings.friendlyname[0]));
  848.  
  849. ^
  850.  
  851. settings:490: error: expected ')' before string constant
  852.  
  853. strlcpy(Settings.friendlyname[1], FRIENDLY_NAME"2", sizeof(Settings.friendlyname[1]));
  854.  
  855. ^
  856.  
  857. settings:491: error: expected ')' before string constant
  858.  
  859. strlcpy(Settings.friendlyname[2], FRIENDLY_NAME"3", sizeof(Settings.friendlyname[2]));
  860.  
  861. ^
  862.  
  863. settings:492: error: expected ')' before string constant
  864.  
  865. strlcpy(Settings.friendlyname[3], FRIENDLY_NAME"4", sizeof(Settings.friendlyname[3]));
  866.  
  867. ^
  868.  
  869. settings:494: error: 'SettingsDefaultSet_3_9_3' was not declared in this scope
  870.  
  871. SettingsDefaultSet_3_9_3();
  872.  
  873. ^
  874.  
  875. settings:498: error: 'WEB_PASSWORD' was not declared in this scope
  876.  
  877. strlcpy(Settings.web_password, WEB_PASSWORD, sizeof(Settings.web_password));
  878.  
  879. ^
  880.  
  881. settings:500: error: 'SettingsDefaultSet_4_0_4' was not declared in this scope
  882.  
  883. SettingsDefaultSet_4_0_4();
  884.  
  885. ^
  886.  
  887. settings:501: error: 'APP_PULSETIME' was not declared in this scope
  888.  
  889. Settings.pulse_timer[0] = APP_PULSETIME;
  890.  
  891. ^
  892.  
  893. settings:507: error: 'SettingsDefaultSet_4_0_9' was not declared in this scope
  894.  
  895. SettingsDefaultSet_4_0_9();
  896.  
  897. ^
  898.  
  899. settings:510: error: 'SettingsDefaultSet_4_1_1' was not declared in this scope
  900.  
  901. SettingsDefaultSet_4_1_1();
  902.  
  903. ^
  904.  
  905. settings:513: error: 'SettingsDefaultSet_5_0_2' was not declared in this scope
  906.  
  907. SettingsDefaultSet_5_0_2();
  908.  
  909. ^
  910.  
  911. settings:517: error: 'RtcSettings' was not declared in this scope
  912.  
  913. RtcSettings.energy_kWhtotal = 0;
  914.  
  915. ^
  916.  
  917. settings:520: error: 'MQTT_FULLTOPIC' was not declared in this scope
  918.  
  919. strlcpy(Settings.mqtt_fulltopic, MQTT_FULLTOPIC, sizeof(Settings.mqtt_fulltopic));
  920.  
  921. ^
  922.  
  923. settings:523: error: 'MQTT_RETRY_SECS' was not declared in this scope
  924.  
  925. Settings.mqtt_retry = MQTT_RETRY_SECS;
  926.  
  927. ^
  928.  
  929. settings:526: error: 'P_HOLD_TIME' was not declared in this scope
  930.  
  931. Settings.param[P_HOLD_TIME] = KEY_HOLD_TIME; // Default 4 seconds hold time
  932.  
  933. ^
  934.  
  935. settings:526: error: 'KEY_HOLD_TIME' was not declared in this scope
  936.  
  937. Settings.param[P_HOLD_TIME] = KEY_HOLD_TIME; // Default 4 seconds hold time
  938.  
  939. ^
  940.  
  941. settings:529: error: 'P_MAX_POWER_RETRY' was not declared in this scope
  942.  
  943. Settings.param[P_MAX_POWER_RETRY] = MAX_POWER_RETRY;
  944.  
  945. ^
  946.  
  947. settings:529: error: 'MAX_POWER_RETRY' was not declared in this scope
  948.  
  949. Settings.param[P_MAX_POWER_RETRY] = MAX_POWER_RETRY;
  950.  
  951. ^
  952.  
  953. settings:532: error: 'kDefaultRfCode' was not declared in this scope
  954.  
  955. memcpy_P(Settings.rf_code[0], kDefaultRfCode, 9);
  956.  
  957. ^
  958.  
  959. settings:535: error: 'WS2812_LEDS' was not declared in this scope
  960.  
  961. Settings.light_pixels = WS2812_LEDS;
  962.  
  963. ^
  964.  
  965. settings:539: error: 'PWM_FREQ' was not declared in this scope
  966.  
  967. Settings.pwm_frequency = PWM_FREQ;
  968.  
  969. ^
  970.  
  971. settings:540: error: 'PWM_RANGE' was not declared in this scope
  972.  
  973. Settings.pwm_range = PWM_RANGE;
  974.  
  975. ^
  976.  
  977. settings:541: error: 'SettingsDefaultSet_5_8_1' was not declared in this scope
  978.  
  979. SettingsDefaultSet_5_8_1();
  980.  
  981. ^
  982.  
  983. settings:547: error: 'SettingsDefaultSet_5_10_1' was not declared in this scope
  984.  
  985. SettingsDefaultSet_5_10_1();
  986.  
  987. ^
  988.  
  989. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino: In function 'void SettingsDefaultSet_3_2_4()':
  990.  
  991. settings:554: error: 'Settings' was not declared in this scope
  992.  
  993. Settings.ws_pixels = WS2812_LEDS;
  994.  
  995. ^
  996.  
  997. settings:554: error: 'WS2812_LEDS' was not declared in this scope
  998.  
  999. Settings.ws_pixels = WS2812_LEDS;
  1000.  
  1001. ^
  1002.  
  1003. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino: In function 'void SettingsDefaultSet_3_9_3()':
  1004.  
  1005. settings:569: error: 'MAX_DOMOTICZ_IDX' was not declared in this scope
  1006.  
  1007. for (byte i = 0; i < MAX_DOMOTICZ_IDX; i++) {
  1008.  
  1009. ^
  1010.  
  1011. settings:570: error: 'Settings' was not declared in this scope
  1012.  
  1013. Settings.domoticz_switch_idx[i] = 0;
  1014.  
  1015. ^
  1016.  
  1017. settings:573: error: 'Settings' was not declared in this scope
  1018.  
  1019. Settings.domoticz_sensor_idx[i] = 0;
  1020.  
  1021. ^
  1022.  
  1023. settings:576: error: 'Settings' was not declared in this scope
  1024.  
  1025. Settings.module = MODULE;
  1026.  
  1027. ^
  1028.  
  1029. settings:576: error: 'MODULE' was not declared in this scope
  1030.  
  1031. Settings.module = MODULE;
  1032.  
  1033. ^
  1034.  
  1035. settings:577: error: 'MAX_GPIO_PIN' was not declared in this scope
  1036.  
  1037. for (byte i = 0; i < MAX_GPIO_PIN; i++){
  1038.  
  1039. ^
  1040.  
  1041. settings:581: error: 'WS2812_LEDS' was not declared in this scope
  1042.  
  1043. Settings.light_pixels = WS2812_LEDS;
  1044.  
  1045. ^
  1046.  
  1047. settings:582: error: 'MAX_PWMS' was not declared in this scope
  1048.  
  1049. for (byte i = 0; i < MAX_PWMS; i++) {
  1050.  
  1051. ^
  1052.  
  1053. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino: In function 'void SettingsDefaultSet_4_0_4()':
  1054.  
  1055. settings:596: error: 'Settings' was not declared in this scope
  1056.  
  1057. strlcpy(Settings.ntp_server[0], NTP_SERVER1, sizeof(Settings.ntp_server[0]));
  1058.  
  1059. ^
  1060.  
  1061. settings:596: error: 'NTP_SERVER1' was not declared in this scope
  1062.  
  1063. strlcpy(Settings.ntp_server[0], NTP_SERVER1, sizeof(Settings.ntp_server[0]));
  1064.  
  1065. ^
  1066.  
  1067. settings:597: error: 'NTP_SERVER2' was not declared in this scope
  1068.  
  1069. strlcpy(Settings.ntp_server[1], NTP_SERVER2, sizeof(Settings.ntp_server[1]));
  1070.  
  1071. ^
  1072.  
  1073. settings:598: error: 'NTP_SERVER3' was not declared in this scope
  1074.  
  1075. strlcpy(Settings.ntp_server[2], NTP_SERVER3, sizeof(Settings.ntp_server[2]));
  1076.  
  1077. ^
  1078.  
  1079. settings:606: error: 'APP_PULSETIME' was not declared in this scope
  1080.  
  1081. Settings.pulse_timer[0] = APP_PULSETIME;
  1082.  
  1083. ^
  1084.  
  1085. settings:607: error: 'MAX_PULSETIMERS' was not declared in this scope
  1086.  
  1087. for (byte i = 1; i < MAX_PULSETIMERS; i++) {
  1088.  
  1089. ^
  1090.  
  1091. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino: In function 'void SettingsDefaultSet_4_0_9()':
  1092.  
  1093. settings:614: error: 'Settings' was not declared in this scope
  1094.  
  1095. strlcpy(Settings.mqtt_prefix[0], SUB_PREFIX, sizeof(Settings.mqtt_prefix[0]));
  1096.  
  1097. ^
  1098.  
  1099. settings:614: error: 'SUB_PREFIX' was not declared in this scope
  1100.  
  1101. strlcpy(Settings.mqtt_prefix[0], SUB_PREFIX, sizeof(Settings.mqtt_prefix[0]));
  1102.  
  1103. ^
  1104.  
  1105. settings:615: error: 'PUB_PREFIX' was not declared in this scope
  1106.  
  1107. strlcpy(Settings.mqtt_prefix[1], PUB_PREFIX, sizeof(Settings.mqtt_prefix[1]));
  1108.  
  1109. ^
  1110.  
  1111. settings:616: error: 'PUB_PREFIX2' was not declared in this scope
  1112.  
  1113. strlcpy(Settings.mqtt_prefix[2], PUB_PREFIX2, sizeof(Settings.mqtt_prefix[2]));
  1114.  
  1115. ^
  1116.  
  1117. settings:617: error: 'WIFI_IP_ADDRESS' was not declared in this scope
  1118.  
  1119. ParseIp(&Settings.ip_address[0], WIFI_IP_ADDRESS);
  1120.  
  1121. ^
  1122.  
  1123. settings:617: error: 'ParseIp' was not declared in this scope
  1124.  
  1125. ParseIp(&Settings.ip_address[0], WIFI_IP_ADDRESS);
  1126.  
  1127. ^
  1128.  
  1129. settings:618: error: 'WIFI_GATEWAY' was not declared in this scope
  1130.  
  1131. ParseIp(&Settings.ip_address[1], WIFI_GATEWAY);
  1132.  
  1133. ^
  1134.  
  1135. settings:619: error: 'WIFI_SUBNETMASK' was not declared in this scope
  1136.  
  1137. ParseIp(&Settings.ip_address[2], WIFI_SUBNETMASK);
  1138.  
  1139. ^
  1140.  
  1141. settings:620: error: 'WIFI_DNS' was not declared in this scope
  1142.  
  1143. ParseIp(&Settings.ip_address[3], WIFI_DNS);
  1144.  
  1145. ^
  1146.  
  1147. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino: In function 'void SettingsDefaultSet_4_1_1()':
  1148.  
  1149. settings:625: error: 'Settings' was not declared in this scope
  1150.  
  1151. strlcpy(Settings.state_text[0], MQTT_STATUS_OFF, sizeof(Settings.state_text[0]));
  1152.  
  1153. ^
  1154.  
  1155. settings:625: error: 'MQTT_STATUS_OFF' was not declared in this scope
  1156.  
  1157. strlcpy(Settings.state_text[0], MQTT_STATUS_OFF, sizeof(Settings.state_text[0]));
  1158.  
  1159. ^
  1160.  
  1161. settings:626: error: 'MQTT_STATUS_ON' was not declared in this scope
  1162.  
  1163. strlcpy(Settings.state_text[1], MQTT_STATUS_ON, sizeof(Settings.state_text[1]));
  1164.  
  1165. ^
  1166.  
  1167. settings:627: error: 'MQTT_CMND_TOGGLE' was not declared in this scope
  1168.  
  1169. strlcpy(Settings.state_text[2], MQTT_CMND_TOGGLE, sizeof(Settings.state_text[2]));
  1170.  
  1171. ^
  1172.  
  1173. settings:628: error: 'MQTT_CMND_HOLD' was not declared in this scope
  1174.  
  1175. strlcpy(Settings.state_text[3], MQTT_CMND_HOLD, sizeof(Settings.state_text[3])); // v5.1.6
  1176.  
  1177. ^
  1178.  
  1179. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino: In function 'void SettingsDefaultSet_5_0_2()':
  1180.  
  1181. settings:633: error: 'Settings' was not declared in this scope
  1182.  
  1183. Settings.flag.temperature_conversion = TEMP_CONVERSION;
  1184.  
  1185. ^
  1186.  
  1187. settings:633: error: 'TEMP_CONVERSION' was not declared in this scope
  1188.  
  1189. Settings.flag.temperature_conversion = TEMP_CONVERSION;
  1190.  
  1191. ^
  1192.  
  1193. settings:634: error: 'TEMP_RESOLUTION' was not declared in this scope
  1194.  
  1195. Settings.flag2.temperature_resolution = TEMP_RESOLUTION;
  1196.  
  1197. ^
  1198.  
  1199. settings:635: error: 'HUMIDITY_RESOLUTION' was not declared in this scope
  1200.  
  1201. Settings.flag2.humidity_resolution = HUMIDITY_RESOLUTION;
  1202.  
  1203. ^
  1204.  
  1205. settings:636: error: 'PRESSURE_RESOLUTION' was not declared in this scope
  1206.  
  1207. Settings.flag2.pressure_resolution = PRESSURE_RESOLUTION;
  1208.  
  1209. ^
  1210.  
  1211. settings:637: error: 'ENERGY_RESOLUTION' was not declared in this scope
  1212.  
  1213. Settings.flag2.energy_resolution = ENERGY_RESOLUTION;
  1214.  
  1215. ^
  1216.  
  1217. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino: In function 'void SettingsDefaultSet_5_8_1()':
  1218.  
  1219. settings:643: error: 'Settings' was not declared in this scope
  1220.  
  1221. Settings.ws_width[WS_SECOND] = 1;
  1222.  
  1223. ^
  1224.  
  1225. settings:643: error: 'WS_SECOND' was not declared in this scope
  1226.  
  1227. Settings.ws_width[WS_SECOND] = 1;
  1228.  
  1229. ^
  1230.  
  1231. settings:644: error: 'WS_RED' was not declared in this scope
  1232.  
  1233. Settings.ws_color[WS_SECOND][WS_RED] = 255;
  1234.  
  1235. ^
  1236.  
  1237. settings:645: error: 'WS_GREEN' was not declared in this scope
  1238.  
  1239. Settings.ws_color[WS_SECOND][WS_GREEN] = 0;
  1240.  
  1241. ^
  1242.  
  1243. settings:646: error: 'WS_BLUE' was not declared in this scope
  1244.  
  1245. Settings.ws_color[WS_SECOND][WS_BLUE] = 255;
  1246.  
  1247. ^
  1248.  
  1249. settings:647: error: 'WS_MINUTE' was not declared in this scope
  1250.  
  1251. Settings.ws_width[WS_MINUTE] = 3;
  1252.  
  1253. ^
  1254.  
  1255. settings:651: error: 'WS_HOUR' was not declared in this scope
  1256.  
  1257. Settings.ws_width[WS_HOUR] = 5;
  1258.  
  1259. ^
  1260.  
  1261. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino: In function 'void SettingsDefaultSet_5_10_1()':
  1262.  
  1263. settings:659: error: 'Settings' was not declared in this scope
  1264.  
  1265. Settings.display_model = 0;
  1266.  
  1267. ^
  1268.  
  1269. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino: In function 'void SettingsDelta()':
  1270.  
  1271. settings:683: error: 'Settings' was not declared in this scope
  1272.  
  1273. if (Settings.version != VERSION) { // Fix version dependent changes
  1274.  
  1275. ^
  1276.  
  1277. settings:683: error: 'VERSION' was not declared in this scope
  1278.  
  1279. if (Settings.version != VERSION) { // Fix version dependent changes
  1280.  
  1281. ^
  1282.  
  1283. settings:685: error: 'APP_POWERON_STATE' was not declared in this scope
  1284.  
  1285. Settings.poweronstate = APP_POWERON_STATE;
  1286.  
  1287. ^
  1288.  
  1289. settings:688: error: 'APP_BLINKTIME' was not declared in this scope
  1290.  
  1291. Settings.blinktime = APP_BLINKTIME;
  1292.  
  1293. ^
  1294.  
  1295. settings:689: error: 'APP_BLINKCOUNT' was not declared in this scope
  1296.  
  1297. Settings.blinkcount = APP_BLINKCOUNT;
  1298.  
  1299. ^
  1300.  
  1301. settings:695: error: 'GetMqttClient' was not declared in this scope
  1302.  
  1303. GetMqttClient(Settings.friendlyname[0], Settings.mqtt_client, sizeof(Settings.friendlyname[0]));
  1304.  
  1305. ^
  1306.  
  1307. settings:696: error: 'FRIENDLY_NAME' was not declared in this scope
  1308.  
  1309. strlcpy(Settings.friendlyname[1], FRIENDLY_NAME"2", sizeof(Settings.friendlyname[1]));
  1310.  
  1311. ^
  1312.  
  1313. settings:697: error: expected ')' before string constant
  1314.  
  1315. strlcpy(Settings.friendlyname[2], FRIENDLY_NAME"3", sizeof(Settings.friendlyname[2]));
  1316.  
  1317. ^
  1318.  
  1319. settings:698: error: expected ')' before string constant
  1320.  
  1321. strlcpy(Settings.friendlyname[3], FRIENDLY_NAME"4", sizeof(Settings.friendlyname[3]));
  1322.  
  1323. ^
  1324.  
  1325. settings:704: error: 'APP_SLEEP' was not declared in this scope
  1326.  
  1327. Settings.sleep = APP_SLEEP;
  1328.  
  1329. ^
  1330.  
  1331. settings:710: error: 'WEB_PASSWORD' was not declared in this scope
  1332.  
  1333. strlcpy(Settings.web_password, WEB_PASSWORD, sizeof(Settings.web_password));
  1334.  
  1335. ^
  1336.  
  1337. settings:713: error: 'MAX_SWITCHES' was not declared in this scope
  1338.  
  1339. for (byte i = 0; i < MAX_SWITCHES; i++) {
  1340.  
  1341. ^
  1342.  
  1343. settings:714: error: 'SWITCH_MODE' was not declared in this scope
  1344.  
  1345. Settings.switchmode[i] = SWITCH_MODE;
  1346.  
  1347. ^
  1348.  
  1349. settings:721: error: 'MAX_GPIO_PIN' was not declared in this scope
  1350.  
  1351. memmove(Settings.my_gp.io, Settings.my_gp.io +1, MAX_GPIO_PIN -1); // move myio 1 byte to front
  1352.  
  1353. ^
  1354.  
  1355. settings:725: error: 'MAX_PWMS' was not declared in this scope
  1356.  
  1357. for (byte i = 0; i < MAX_PWMS; i++) {
  1358.  
  1359. ^
  1360.  
  1361. settings:737: error: 'SAVE_STATE' was not declared in this scope
  1362.  
  1363. Settings.flag.save_state = SAVE_STATE;
  1364.  
  1365. ^
  1366.  
  1367. settings:740: error: 'MQTT_USE' was not declared in this scope
  1368.  
  1369. Settings.flag.mqtt_enabled = MQTT_USE;
  1370.  
  1371. ^
  1372.  
  1373. settings:744: error: 'MQTT_SWITCH_RETAIN' was not declared in this scope
  1374.  
  1375. Settings.flag.mqtt_switch_retain = MQTT_SWITCH_RETAIN;
  1376.  
  1377. ^
  1378.  
  1379. settings:25: error: 'EMUL_NONE' was not declared in this scope
  1380.  
  1381. #define EMULATION EMUL_NONE // [Emulation] Select Belkin WeMo (single relay/light) or Hue Bridge emulation (multi relay/light) (EMUL_NONE, EMUL_WEMO or EMUL_HUE)
  1382.  
  1383. ^
  1384.  
  1385. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\settings.ino:745:34: note: in expansion of macro 'EMULATION'
  1386.  
  1387. Settings.flag2.emulation = EMULATION;
  1388.  
  1389. ^
  1390.  
  1391. settings:749: error: 'SAVE_DATA' was not declared in this scope
  1392.  
  1393. Settings.save_data = SAVE_DATA;
  1394.  
  1395. ^
  1396.  
  1397. settings:753: error: 'RtcSettings' was not declared in this scope
  1398.  
  1399. RtcSettings.energy_kWhtotal = 0;
  1400.  
  1401. ^
  1402.  
  1403. settings:756: error: 'MQTT_FULLTOPIC' was not declared in this scope
  1404.  
  1405. strlcpy(Settings.mqtt_fulltopic, MQTT_FULLTOPIC, sizeof(Settings.mqtt_fulltopic));
  1406.  
  1407. ^
  1408.  
  1409. settings:759: error: 'MQTT_RETRY_SECS' was not declared in this scope
  1410.  
  1411. Settings.mqtt_retry = MQTT_RETRY_SECS;
  1412.  
  1413. ^
  1414.  
  1415. settings:764: error: 'MAX_COUNTERS' was not declared in this scope
  1416.  
  1417. for (byte i = 0; i < MAX_COUNTERS; i++) {
  1418.  
  1419. ^
  1420.  
  1421. settings:766: error: 'RtcSettings' was not declared in this scope
  1422.  
  1423. RtcSettings.pulse_counter[i] = 0;
  1424.  
  1425. ^
  1426.  
  1427. settings:773: error: 'P_HOLD_TIME' was not declared in this scope
  1428.  
  1429. Settings.param[P_HOLD_TIME] = KEY_HOLD_TIME; // Default 4 seconds hold time
  1430.  
  1431. ^
  1432.  
  1433. settings:773: error: 'KEY_HOLD_TIME' was not declared in this scope
  1434.  
  1435. Settings.param[P_HOLD_TIME] = KEY_HOLD_TIME; // Default 4 seconds hold time
  1436.  
  1437. ^
  1438.  
  1439. settings:776: error: 'P_MAX_POWER_RETRY' was not declared in this scope
  1440.  
  1441. Settings.param[P_MAX_POWER_RETRY] = MAX_POWER_RETRY;
  1442.  
  1443. ^
  1444.  
  1445. settings:776: error: 'MAX_POWER_RETRY' was not declared in this scope
  1446.  
  1447. Settings.param[P_MAX_POWER_RETRY] = MAX_POWER_RETRY;
  1448.  
  1449. ^
  1450.  
  1451. settings:782: error: 'kDefaultRfCode' was not declared in this scope
  1452.  
  1453. memcpy_P(Settings.rf_code[0], kDefaultRfCode, 9);
  1454.  
  1455. ^
  1456.  
  1457. settings:786: error: 'MAX_GPIO_PIN' was not declared in this scope
  1458.  
  1459. for (byte i = 0; i < MAX_GPIO_PIN; i++) {
  1460.  
  1461. ^
  1462.  
  1463. settings:787: error: 'GPIO_WS2812' was not declared in this scope
  1464.  
  1465. if (GPIO_WS2812 == Settings.my_gp.io[i]) {
  1466.  
  1467. ^
  1468.  
  1469. settings:804: error: 'WS2812_LEDS' was not declared in this scope
  1470.  
  1471. Settings.light_pixels = WS2812_LEDS;
  1472.  
  1473. ^
  1474.  
  1475. settings:813: error: 'MAX_GPIO_PIN' was not declared in this scope
  1476.  
  1477. for (byte i = 0; i < MAX_GPIO_PIN; i++) { // Move GPIO_LEDs
  1478.  
  1479. ^
  1480.  
  1481. settings:818: error: 'MAX_PWMS' was not declared in this scope
  1482.  
  1483. for (byte i = 0; i < MAX_PWMS; i++) { // Move pwm_value and reset additional pulse_timerrs
  1484.  
  1485. ^
  1486.  
  1487. settings:824: error: 'PWM_FREQ' was not declared in this scope
  1488.  
  1489. Settings.pwm_frequency = PWM_FREQ;
  1490.  
  1491. ^
  1492.  
  1493. settings:825: error: 'PWM_RANGE' was not declared in this scope
  1494.  
  1495. Settings.pwm_range = PWM_RANGE;
  1496.  
  1497. ^
  1498.  
  1499. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\sonoff.ino: In function 'void SetDevicePower(power_t)':
  1500.  
  1501. sonoff:308: error: 'XdrvSetPower' was not declared in this scope
  1502.  
  1503. XdrvSetPower(bitRead(rpower, devices_present -1));
  1504.  
  1505. ^
  1506.  
  1507. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\sonoff.ino: In function 'void MqttSubscribe(char*)':
  1508.  
  1509. sonoff:345: error: 'AddLog' was not declared in this scope
  1510.  
  1511. AddLog(LOG_LEVEL_DEBUG);
  1512.  
  1513. ^
  1514.  
  1515. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\sonoff.ino: In function 'void MqttPublishDirect(const char*, boolean)':
  1516.  
  1517. sonoff:364: error: 'AddLog' was not declared in this scope
  1518.  
  1519. AddLog(LOG_LEVEL_INFO);
  1520.  
  1521. ^
  1522.  
  1523. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\sonoff.ino: In function 'void MqttPublishPowerState(byte)':
  1524.  
  1525. sonoff:422: error: 'GetPowerDevice' was not declared in this scope
  1526.  
  1527. GetPowerDevice(scommand, device, sizeof(scommand));
  1528.  
  1529. ^
  1530.  
  1531. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\sonoff.ino: In function 'void MqttPublishPowerBlinkState(byte)':
  1532.  
  1533. sonoff:440: error: 'GetPowerDevice' was not declared in this scope
  1534.  
  1535. GetPowerDevice(scommand, device, sizeof(scommand)), GetStateText(bitRead(blink_mask, device -1)));
  1536.  
  1537. ^
  1538.  
  1539. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\sonoff.ino: In function 'void MqttConnected()':
  1540.  
  1541. sonoff:466: error: 'XdrvCall' was not declared in this scope
  1542.  
  1543. XdrvCall(FUNC_MQTT_SUBSCRIBE);
  1544.  
  1545. ^
  1546.  
  1547. sonoff:481: error: 'GetResetReason' was not declared in this scope
  1548.  
  1549. (GetResetReason() == "Exception") ? ESP.getResetInfo().c_str() : GetResetReason().c_str());
  1550.  
  1551. ^
  1552.  
  1553. sonoff:488: error: 'DomoticzSetUpdateTimer' was not declared in this scope
  1554.  
  1555. DomoticzSetUpdateTimer(2);
  1556.  
  1557. ^
  1558.  
  1559. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\sonoff.ino: In function 'void MqttReconnect()':
  1560.  
  1561. sonoff:505: error: 'UdpDisconnect' was not declared in this scope
  1562.  
  1563. UdpDisconnect();
  1564.  
  1565. ^
  1566.  
  1567. sonoff:524: error: 'MqttDataCallback' was not declared in this scope
  1568.  
  1569. MqttClient.setCallback(MqttDataCallback);
  1570.  
  1571. ^
  1572.  
  1573. sonoff:530: error: 'AddLog_P' was not declared in this scope
  1574.  
  1575. AddLog_P(LOG_LEVEL_INFO, S_LOG_MQTT, PSTR(D_ATTEMPTING_CONNECTION));
  1576.  
  1577. ^
  1578.  
  1579. sonoff:535: error: 'MdnsDiscoverMqttServer' was not declared in this scope
  1580.  
  1581. MdnsDiscoverMqttServer();
  1582.  
  1583. ^
  1584.  
  1585. sonoff:562: error: 'AddLog' was not declared in this scope
  1586.  
  1587. AddLog(LOG_LEVEL_INFO);
  1588.  
  1589. ^
  1590.  
  1591. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\sonoff.ino: In function 'boolean MqttCommand(boolean, char*, uint16_t, char*, uint16_t, int16_t, uint16_t)':
  1592.  
  1593. sonoff:577: error: 'GetCommandCode' was not declared in this scope
  1594.  
  1595. int command_code = GetCommandCode(command, sizeof(command), type, kMqttCommands);
  1596.  
  1597. ^
  1598.  
  1599. sonoff:628: error: 'MQTT_USER' was not declared in this scope
  1600.  
  1601. strlcpy(Settings.mqtt_user, (!strcmp(dataBuf,"0")) ? "" : (1 == payload) ? MQTT_USER : dataBuf, sizeof(Settings.mqtt_user));
  1602.  
  1603. ^
  1604.  
  1605. sonoff:635: error: 'MQTT_PASS' was not declared in this scope
  1606.  
  1607. strlcpy(Settings.mqtt_pwd, (!strcmp(dataBuf,"0")) ? "" : (1 == payload) ? MQTT_PASS : dataBuf, sizeof(Settings.mqtt_pwd));
  1608.  
  1609. ^
  1610.  
  1611. sonoff:642: error: 'MakeValidMqtt' was not declared in this scope
  1612.  
  1613. MakeValidMqtt(1, dataBuf);
  1614.  
  1615. ^
  1616.  
  1617. sonoff:658: error: 'MakeValidMqtt' was not declared in this scope
  1618.  
  1619. MakeValidMqtt(0, dataBuf);
  1620.  
  1621. ^
  1622.  
  1623. sonoff:667: error: 'MakeValidMqtt' was not declared in this scope
  1624.  
  1625. MakeValidMqtt(0, dataBuf);
  1626.  
  1627. ^
  1628.  
  1629. sonoff:678: error: 'MakeValidMqtt' was not declared in this scope
  1630.  
  1631. MakeValidMqtt(0, dataBuf);
  1632.  
  1633. ^
  1634.  
  1635. sonoff:694: error: 'MakeValidMqtt' was not declared in this scope
  1636.  
  1637. MakeValidMqtt(0, dataBuf);
  1638.  
  1639. ^
  1640.  
  1641. sonoff:704: error: 'MakeValidMqtt' was not declared in this scope
  1642.  
  1643. MakeValidMqtt(0, dataBuf);
  1644.  
  1645. ^
  1646.  
  1647. sonoff:717: error: 'send_button_power' was not declared in this scope
  1648.  
  1649. send_button_power(0, i, 9); // Clear MQTT retain in broker
  1650.  
  1651. ^
  1652.  
  1653. sonoff:729: error: 'send_button_power' was not declared in this scope
  1654.  
  1655. send_button_power(1, i, 9); // Clear MQTT retain in broker
  1656.  
  1657. ^
  1658.  
  1659. sonoff:740: error: 'GetPowerDevice' was not declared in this scope
  1660.  
  1661. GetTopic_P(stemp1, 1, Settings.mqtt_topic, GetPowerDevice(scommand, i, sizeof(scommand)));
  1662.  
  1663. ^
  1664.  
  1665. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\sonoff.ino: In function 'void MqttDataCallback(char*, byte*, unsigned int)':
  1666.  
  1667. sonoff:810: error: 'AddLog' was not declared in this scope
  1668.  
  1669. AddLog(LOG_LEVEL_DEBUG_MORE);
  1670.  
  1671. ^
  1672.  
  1673. sonoff:813: error: 'XdrvMqttData' was not declared in this scope
  1674.  
  1675. if (XdrvMqttData(topicBuf, sizeof(topicBuf), dataBuf, sizeof(dataBuf))) {
  1676.  
  1677. ^
  1678.  
  1679. sonoff:857: error: 'GetCommandCode' was not declared in this scope
  1680.  
  1681. if ((GetCommandCode(command, sizeof(command), dataBuf, kOptionOff) >= 0) || !strcasecmp(dataBuf, Settings.state_text[0])) {
  1682.  
  1683. ^
  1684.  
  1685. sonoff:860: error: 'GetCommandCode' was not declared in this scope
  1686.  
  1687. if ((GetCommandCode(command, sizeof(command), dataBuf, kOptionOn) >= 0) || !strcasecmp(dataBuf, Settings.state_text[1])) {
  1688.  
  1689. ^
  1690.  
  1691. sonoff:863: error: 'GetCommandCode' was not declared in this scope
  1692.  
  1693. if ((GetCommandCode(command, sizeof(command), dataBuf, kOptionToggle) >= 0) || !strcasecmp(dataBuf, Settings.state_text[2])) {
  1694.  
  1695. ^
  1696.  
  1697. sonoff:866: error: 'GetCommandCode' was not declared in this scope
  1698.  
  1699. if (GetCommandCode(command, sizeof(command), dataBuf, kOptionBlink) >= 0) {
  1700.  
  1701. ^
  1702.  
  1703. sonoff:869: error: 'GetCommandCode' was not declared in this scope
  1704.  
  1705. if (GetCommandCode(command, sizeof(command), dataBuf, kOptionBlinkOff) >= 0) {
  1706.  
  1707. ^
  1708.  
  1709. sonoff:876: error: 'GetCommandCode' was not declared in this scope
  1710.  
  1711. int command_code = GetCommandCode(command, sizeof(command), type, kTasmotaCommands);
  1712.  
  1713. ^
  1714.  
  1715. sonoff:908: error: 'ExecuteCommandPower' was not declared in this scope
  1716.  
  1717. ExecuteCommandPower(index, payload);
  1718.  
  1719. ^
  1720.  
  1721. sonoff:916: error: 'PublishStatus' was not declared in this scope
  1722.  
  1723. PublishStatus(payload);
  1724.  
  1725. ^
  1726.  
  1727. sonoff:931: error: 'ExecuteCommandPower' was not declared in this scope
  1728.  
  1729. ExecuteCommandPower(i, 1);
  1730.  
  1731. ^
  1732.  
  1733. sonoff:1223: error: 'NewerVersion' was not declared in this scope
  1734.  
  1735. if (((1 == data_len) && (1 == payload)) || ((data_len >= 3) && NewerVersion(dataBuf))) {
  1736.  
  1737. ^
  1738.  
  1739. sonoff:1264: error: 'ParseIp' was not declared in this scope
  1740.  
  1741. if (ParseIp(&address, dataBuf)) {
  1742.  
  1743. ^
  1744.  
  1745. sonoff:1329: error: 'WifiState' was not declared in this scope
  1746.  
  1747. if (WifiState() != WIFI_RESTART) {
  1748.  
  1749. ^
  1750.  
  1751. sonoff:1406: error: 'AddLog_P' was not declared in this scope
  1752.  
  1753. AddLog_P(LOG_LEVEL_INFO, PSTR(D_LOG_APPLICATION D_RESTARTING));
  1754.  
  1755. ^
  1756.  
  1757. sonoff:1471: error: 'I2cScan' was not declared in this scope
  1758.  
  1759. I2cScan(mqtt_data, sizeof(mqtt_data));
  1760.  
  1761. ^
  1762.  
  1763. sonoff:1486: error: 'XdrvCommand' was not declared in this scope
  1764.  
  1765. else if (XdrvCommand(type, index, dataBuf, data_len, payload)) {
  1766.  
  1767. ^
  1768.  
  1769. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\sonoff.ino: In function 'boolean send_button_power(byte, byte, byte)':
  1770.  
  1771. sonoff:1535: error: 'GetPowerDevice' was not declared in this scope
  1772.  
  1773. GetTopic_P(stopic, 0, key_topic, GetPowerDevice(scommand, device, sizeof(scommand), key));
  1774.  
  1775. ^
  1776.  
  1777. sonoff:1545: error: 'DomoticzButton' was not declared in this scope
  1778.  
  1779. if (!(DomoticzButton(key, device, state, strlen(mqtt_data)))) {
  1780.  
  1781. ^
  1782.  
  1783. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\sonoff.ino: In function 'void ExecuteCommandPower(byte, byte)':
  1784.  
  1785. sonoff:1607: error: 'DomoticzUpdatePowerState' was not declared in this scope
  1786.  
  1787. DomoticzUpdatePowerState(device);
  1788.  
  1789. ^
  1790.  
  1791. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\sonoff.ino: In function 'void PublishStatus(uint8_t)':
  1792.  
  1793. sonoff:1703: error: 'GetBuildDateAndTime' was not declared in this scope
  1794.  
  1795. GetBuildDateAndTime().c_str(), ESP.getBootVersion(), ESP.getSdkVersion());
  1796.  
  1797. ^
  1798.  
  1799. sonoff:1734: error: 'GetTime' was not declared in this scope
  1800.  
  1801. GetTime(0).c_str(), GetTime(1).c_str(), GetTime(2).c_str(), GetTime(3).c_str(), Settings.timezone);
  1802.  
  1803. ^
  1804.  
  1805. sonoff:1748: error: 'MqttShowSensor' was not declared in this scope
  1806.  
  1807. MqttShowSensor();
  1808.  
  1809. ^
  1810.  
  1811. sonoff:1759: error: 'MqttShowState' was not declared in this scope
  1812.  
  1813. MqttShowState();
  1814.  
  1815. ^
  1816.  
  1817. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\sonoff.ino: In function 'void MqttShowState()':
  1818.  
  1819. sonoff:1770: error: 'GetDateAndTime' was not declared in this scope
  1820.  
  1821. snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("%s{\"" D_JSON_TIME "\":\"%s\",\"" D_JSON_UPTIME "\":%d"), mqtt_data, GetDateAndTime().c_str(), uptime);
  1822.  
  1823. ^
  1824.  
  1825. sonoff:1772: error: 'dtostrfd' was not declared in this scope
  1826.  
  1827. dtostrfd((double)ESP.getVcc()/1000, 3, stemp1);
  1828.  
  1829. ^
  1830.  
  1831. sonoff:1776: error: 'GetPowerDevice' was not declared in this scope
  1832.  
  1833. snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("%s,\"%s\":\"%s\""), mqtt_data, GetPowerDevice(stemp1, i +1, sizeof(stemp1)), GetStateText(bitRead(power, i)));
  1834.  
  1835. ^
  1836.  
  1837. sonoff:1779: error: 'WifiGetRssiAsQuality' was not declared in this scope
  1838.  
  1839. mqtt_data, Settings.sta_active +1, Settings.sta_ssid[Settings.sta_active], WifiGetRssiAsQuality(WiFi.RSSI()), WiFi.BSSIDstr().c_str());
  1840.  
  1841. ^
  1842.  
  1843. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\sonoff.ino: In function 'boolean MqttShowSensor()':
  1844.  
  1845. sonoff:1784: error: 'GetDateAndTime' was not declared in this scope
  1846.  
  1847. snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("%s{\"" D_JSON_TIME "\":\"%s\""), mqtt_data, GetDateAndTime().c_str());
  1848.  
  1849. ^
  1850.  
  1851. sonoff:1792: error: 'XsnsCall' was not declared in this scope
  1852.  
  1853. XsnsCall(FUNC_JSON_APPEND);
  1854.  
  1855. ^
  1856.  
  1857. sonoff:1795: error: 'TempUnit' was not declared in this scope
  1858.  
  1859. snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("%s,\"" D_JSON_TEMPERATURE_UNIT "\":\"%c\""), mqtt_data, TempUnit());
  1860.  
  1861. ^
  1862.  
  1863. sonoff:1800: error: 'XdrvCall' was not declared in this scope
  1864.  
  1865. XdrvCall(FUNC_SHOW_SENSOR);
  1866.  
  1867. ^
  1868.  
  1869. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\sonoff.ino: In function 'void PerformEverySecond()':
  1870.  
  1871. sonoff:1823: error: 'AddLog_P' was not declared in this scope
  1872.  
  1873. AddLog_P(LOG_LEVEL_INFO, PSTR(D_LOG_APPLICATION D_SERIAL_LOGGING_DISABLED));
  1874.  
  1875. ^
  1876.  
  1877. sonoff:1834: error: 'AddLog_P' was not declared in this scope
  1878.  
  1879. AddLog_P(LOG_LEVEL_INFO, PSTR(D_LOG_APPLICATION D_SYSLOG_LOGGING_REENABLED)); // Might trigger disable again (on purpose)
  1880.  
  1881. ^
  1882.  
  1883. sonoff:1851: error: 'XsnsCall' was not declared in this scope
  1884.  
  1885. XsnsCall(FUNC_PREP_BEFORE_TELEPERIOD);
  1886.  
  1887. ^
  1888.  
  1889. sonoff:1868: error: 'XdrvCall' was not declared in this scope
  1890.  
  1891. XdrvCall(FUNC_EVERY_SECOND);
  1892.  
  1893. ^
  1894.  
  1895. sonoff:1869: error: 'XsnsCall' was not declared in this scope
  1896.  
  1897. XsnsCall(FUNC_EVERY_SECOND);
  1898.  
  1899. ^
  1900.  
  1901. sonoff:1874: error: 'GetDateAndTime' was not declared in this scope
  1902.  
  1903. snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("{\"" D_JSON_TIME "\":\"%s\",\"" D_JSON_UPTIME "\":%d}"), GetDateAndTime().c_str(), uptime);
  1904.  
  1905. ^
  1906.  
  1907. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\sonoff.ino: In function 'void ButtonHandler()':
  1908.  
  1909. sonoff:1901: error: 'AddLog' was not declared in this scope
  1910.  
  1911. AddLog(LOG_LEVEL_DEBUG);
  1912.  
  1913. ^
  1914.  
  1915. sonoff:1923: error: 'AddLog' was not declared in this scope
  1916.  
  1917. AddLog(LOG_LEVEL_DEBUG);
  1918.  
  1919. ^
  1920.  
  1921. sonoff:1929: error: 'AddLog' was not declared in this scope
  1922.  
  1923. AddLog(LOG_LEVEL_DEBUG);
  1924.  
  1925. ^
  1926.  
  1927. sonoff:1943: error: 'AddLog' was not declared in this scope
  1928.  
  1929. AddLog(LOG_LEVEL_DEBUG);
  1930.  
  1931. ^
  1932.  
  1933. sonoff:1950: error: 'AddLog' was not declared in this scope
  1934.  
  1935. AddLog(LOG_LEVEL_DEBUG);
  1936.  
  1937. ^
  1938.  
  1939. sonoff:1997: error: 'WifiState' was not declared in this scope
  1940.  
  1941. if (WifiState()) { // WPSconfig, Smartconfig or Wifimanager active
  1942.  
  1943. ^
  1944.  
  1945. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\sonoff.ino: In function 'void StateLoop()':
  1946.  
  1947. sonoff:2184: error: 'XdrvCall' was not declared in this scope
  1948.  
  1949. XdrvCall(FUNC_EVERY_50_MSECOND);
  1950.  
  1951. ^
  1952.  
  1953. sonoff:2185: error: 'XsnsCall' was not declared in this scope
  1954.  
  1955. XsnsCall(FUNC_EVERY_50_MSECOND);
  1956.  
  1957. ^
  1958.  
  1959. sonoff:2234: error: 'StopWebserver' was not declared in this scope
  1960.  
  1961. StopWebserver();
  1962.  
  1963. ^
  1964.  
  1965. sonoff:2238: error: 'AriluxRfDisable' was not declared in this scope
  1966.  
  1967. AriluxRfDisable(); // Prevent restart exception on Arilux Interrupt routine
  1968.  
  1969. ^
  1970.  
  1971. sonoff:2266: error: 'MidnightNow' was not declared in this scope
  1972.  
  1973. if (MidnightNow()) {
  1974.  
  1975. ^
  1976.  
  1977. sonoff:2267: error: 'CounterSaveState' was not declared in this scope
  1978.  
  1979. CounterSaveState();
  1980.  
  1981. ^
  1982.  
  1983. sonoff:2301: error: 'AddLog_P' was not declared in this scope
  1984.  
  1985. AddLog_P(LOG_LEVEL_INFO, PSTR(D_LOG_APPLICATION D_RESTARTING));
  1986.  
  1987. ^
  1988.  
  1989. sonoff:2307: error: 'WifiCheck' was not declared in this scope
  1990.  
  1991. WifiCheck(wifi_state_flag);
  1992.  
  1993. ^
  1994.  
  1995. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\sonoff.ino: In function 'void SerialInput()':
  1996.  
  1997. sonoff:2364: error: 'SonoffBridgeSerialInput' was not declared in this scope
  1998.  
  1999. if (SonoffBridgeSerialInput()) {
  2000.  
  2001. ^
  2002.  
  2003. sonoff:2391: error: 'SonoffScSerialInput' was not declared in this scope
  2004.  
  2005. SonoffScSerialInput(serial_in_buffer);
  2006.  
  2007. ^
  2008.  
  2009. sonoff:2403: error: 'AddLog' was not declared in this scope
  2010.  
  2011. AddLog(LOG_LEVEL_INFO);
  2012.  
  2013. ^
  2014.  
  2015. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\sonoff.ino: In function 'void GpioInit()':
  2016.  
  2017. sonoff:2459: error: 'DhtSetup' was not declared in this scope
  2018.  
  2019. if (DhtSetup(i, mpin)) {
  2020.  
  2021. ^
  2022.  
  2023. sonoff:2594: error: 'XDrvInit' was not declared in this scope
  2024.  
  2025. XDrvInit();
  2026.  
  2027. ^
  2028.  
  2029. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\sonoff.ino: In function 'void setup()':
  2030.  
  2031. sonoff:2613: error: 'OsWatchInit' was not declared in this scope
  2032.  
  2033. OsWatchInit();
  2034.  
  2035. ^
  2036.  
  2037. sonoff:2627: error: 'AddLog' was not declared in this scope
  2038.  
  2039. AddLog(LOG_LEVEL_DEBUG);
  2040.  
  2041. ^
  2042.  
  2043. sonoff:2631: error: 'SetSerialBaudrate' was not declared in this scope
  2044.  
  2045. SetSerialBaudrate(baudrate);
  2046.  
  2047. ^
  2048.  
  2049. sonoff:2639: error: 'WifiConnect' was not declared in this scope
  2050.  
  2051. WifiConnect();
  2052.  
  2053. ^
  2054.  
  2055. sonoff:2696: error: 'RtcInit' was not declared in this scope
  2056.  
  2057. RtcInit();
  2058.  
  2059. ^
  2060.  
  2061. sonoff:2697: error: 'XSnsInit' was not declared in this scope
  2062.  
  2063. XSnsInit();
  2064.  
  2065. ^
  2066.  
  2067. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\sonoff.ino: In function 'void loop()':
  2068.  
  2069. sonoff:2702: error: 'OsWatchLoop' was not declared in this scope
  2070.  
  2071. OsWatchLoop();
  2072.  
  2073. ^
  2074.  
  2075. sonoff:2705: error: 'PollDnsWebserver' was not declared in this scope
  2076.  
  2077. PollDnsWebserver();
  2078.  
  2079. ^
  2080.  
  2081. sonoff:2710: error: 'PollUdp' was not declared in this scope
  2082.  
  2083. PollUdp();
  2084.  
  2085. ^
  2086.  
  2087. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\support.ino: In function 'void WifiWpsStatusCallback(wps_cb_status)':
  2088.  
  2089. support:391: error: 'AddLog' was not declared in this scope
  2090.  
  2091. AddLog(LOG_LEVEL_DEBUG);
  2092.  
  2093. ^
  2094.  
  2095. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\support.ino: In function 'void WifiConfig(uint8_t)':
  2096.  
  2097. support:426: error: 'UdpDisconnect' was not declared in this scope
  2098.  
  2099. UdpDisconnect();
  2100.  
  2101. ^
  2102.  
  2103. support:437: error: 'AddLog_P' was not declared in this scope
  2104.  
  2105. AddLog_P(LOG_LEVEL_INFO, S_LOG_WIFI, PSTR(D_WCFG_1_SMARTCONFIG D_ACTIVE_FOR_3_MINUTES));
  2106.  
  2107. ^
  2108.  
  2109. support:442: error: 'AddLog_P' was not declared in this scope
  2110.  
  2111. AddLog_P(LOG_LEVEL_INFO, S_LOG_WIFI, PSTR(D_WCFG_3_WPSCONFIG D_ACTIVE_FOR_3_MINUTES));
  2112.  
  2113. ^
  2114.  
  2115. support:444: error: 'AddLog_P' was not declared in this scope
  2116.  
  2117. AddLog_P(LOG_LEVEL_INFO, S_LOG_WIFI, PSTR(D_WCFG_3_WPSCONFIG D_FAILED_TO_START));
  2118.  
  2119. ^
  2120.  
  2121. support:450: error: 'AddLog_P' was not declared in this scope
  2122.  
  2123. AddLog_P(LOG_LEVEL_INFO, S_LOG_WIFI, PSTR(D_WCFG_2_WIFIMANAGER D_ACTIVE_FOR_3_MINUTES));
  2124.  
  2125. ^
  2126.  
  2127. support:451: error: 'WifiManagerBegin' was not declared in this scope
  2128.  
  2129. WifiManagerBegin();
  2130.  
  2131. ^
  2132.  
  2133. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\support.ino: In function 'void WifiBegin(uint8_t)':
  2134.  
  2135. support:462: error: 'UdpDisconnect' was not declared in this scope
  2136.  
  2137. UdpDisconnect();
  2138.  
  2139. ^
  2140.  
  2141. support:500: error: 'AddLog' was not declared in this scope
  2142.  
  2143. AddLog(LOG_LEVEL_INFO);
  2144.  
  2145. ^
  2146.  
  2147. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\support.ino: In function 'void WifiCheckIp()':
  2148.  
  2149. support:508: error: 'AddLog_P' was not declared in this scope
  2150.  
  2151. AddLog_P((wifi_status != WL_CONNECTED) ? LOG_LEVEL_INFO : LOG_LEVEL_DEBUG_MORE, S_LOG_WIFI, PSTR(D_CONNECTED));
  2152.  
  2153. ^
  2154.  
  2155. support:520: error: 'AddLog_P' was not declared in this scope
  2156.  
  2157. AddLog_P(LOG_LEVEL_INFO, S_LOG_WIFI, PSTR(D_CONNECT_FAILED_NO_IP_ADDRESS));
  2158.  
  2159. ^
  2160.  
  2161. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\support.ino: In function 'void WifiCheck(uint8_t)':
  2162.  
  2163. support:599: error: 'AddLog' was not declared in this scope
  2164.  
  2165. AddLog(LOG_LEVEL_INFO);
  2166.  
  2167. ^
  2168.  
  2169. support:610: error: 'AddLog_P' was not declared in this scope
  2170.  
  2171. AddLog_P(LOG_LEVEL_DEBUG_MORE, S_LOG_WIFI, PSTR(D_CHECKING_CONNECTION));
  2172.  
  2173. ^
  2174.  
  2175. support:619: error: 'AddLog' was not declared in this scope
  2176.  
  2177. AddLog(LOG_LEVEL_INFO);
  2178.  
  2179. ^
  2180.  
  2181. support:624: error: 'StartWebserver' was not declared in this scope
  2182.  
  2183. StartWebserver(Settings.webserver, WiFi.localIP());
  2184.  
  2185. ^
  2186.  
  2187. support:631: error: 'StopWebserver' was not declared in this scope
  2188.  
  2189. StopWebserver();
  2190.  
  2191. ^
  2192.  
  2193. support:635: error: 'UdpConnect' was not declared in this scope
  2194.  
  2195. UdpConnect();
  2196.  
  2197. ^
  2198.  
  2199. support:641: error: 'UdpDisconnect' was not declared in this scope
  2200.  
  2201. UdpDisconnect();
  2202.  
  2203. ^
  2204.  
  2205. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\support.ino: In function 'boolean MdnsDiscoverMqttServer()':
  2206.  
  2207. support:685: error: 'AddLog' was not declared in this scope
  2208.  
  2209. AddLog(LOG_LEVEL_INFO);
  2210.  
  2211. ^
  2212.  
  2213. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\support.ino: In function 'String GetUtcDateAndTime()':
  2214.  
  2215. support:953: error: 'BreakTime' was not declared in this scope
  2216.  
  2217. BreakTime(utc_time, tmpTime);
  2218.  
  2219. ^
  2220.  
  2221. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\support.ino: In function 'void RtcSecond()':
  2222.  
  2223. support:1139: error: 'AddLog' was not declared in this scope
  2224.  
  2225. AddLog(LOG_LEVEL_DEBUG);
  2226.  
  2227. ^
  2228.  
  2229. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\support.ino: In function 'void SetSerialBaudrate(int)':
  2230.  
  2231. support:1298: error: 'AddLog' was not declared in this scope
  2232.  
  2233. AddLog(LOG_LEVEL_INFO);
  2234.  
  2235. ^
  2236.  
  2237. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\support.ino: In function 'void Syslog()':
  2238.  
  2239. support:1386: error: 'AddLog' was not declared in this scope
  2240.  
  2241. AddLog(LOG_LEVEL_INFO);
  2242.  
  2243. ^
  2244.  
  2245. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\webserver.ino: At global scope:
  2246.  
  2247. webserver:217: error: expected ',' or ';' before 'MQTT_USER'
  2248.  
  2249. "<br/><b>" D_USER "</b> (" MQTT_USER ")<br/><input id='mu' name='mu' placeholder='" MQTT_USER "' value='{m4'><br/>"
  2250.  
  2251. ^
  2252.  
  2253. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\webserver.ino: In function 'void StartWebserver(int, IPAddress)':
  2254.  
  2255. webserver:310: error: 'HandleRoot' was not declared in this scope
  2256.  
  2257. WebServer->on("/", HandleRoot);
  2258.  
  2259. ^
  2260.  
  2261. webserver:311: error: 'HandleConfiguration' was not declared in this scope
  2262.  
  2263. WebServer->on("/cn", HandleConfiguration);
  2264.  
  2265. ^
  2266.  
  2267. webserver:312: error: 'HandleModuleConfiguration' was not declared in this scope
  2268.  
  2269. WebServer->on("/md", HandleModuleConfiguration);
  2270.  
  2271. ^
  2272.  
  2273. webserver:313: error: 'HandleWifiConfigurationWithScan' was not declared in this scope
  2274.  
  2275. WebServer->on("/w1", HandleWifiConfigurationWithScan);
  2276.  
  2277. ^
  2278.  
  2279. webserver:314: error: 'HandleWifiConfiguration' was not declared in this scope
  2280.  
  2281. WebServer->on("/w0", HandleWifiConfiguration);
  2282.  
  2283. ^
  2284.  
  2285. webserver:316: error: 'HandleMqttConfiguration' was not declared in this scope
  2286.  
  2287. WebServer->on("/mq", HandleMqttConfiguration);
  2288.  
  2289. ^
  2290.  
  2291. webserver:318: error: 'HandleDomoticzConfiguration' was not declared in this scope
  2292.  
  2293. WebServer->on("/dm", HandleDomoticzConfiguration);
  2294.  
  2295. ^
  2296.  
  2297. webserver:321: error: 'HandleLoggingConfiguration' was not declared in this scope
  2298.  
  2299. WebServer->on("/lg", HandleLoggingConfiguration);
  2300.  
  2301. ^
  2302.  
  2303. webserver:322: error: 'HandleOtherConfiguration' was not declared in this scope
  2304.  
  2305. WebServer->on("/co", HandleOtherConfiguration);
  2306.  
  2307. ^
  2308.  
  2309. webserver:323: error: 'HandleBackupConfiguration' was not declared in this scope
  2310.  
  2311. WebServer->on("/dl", HandleBackupConfiguration);
  2312.  
  2313. ^
  2314.  
  2315. webserver:324: error: 'HandleSaveSettings' was not declared in this scope
  2316.  
  2317. WebServer->on("/sv", HandleSaveSettings);
  2318.  
  2319. ^
  2320.  
  2321. webserver:325: error: 'HandleRestoreConfiguration' was not declared in this scope
  2322.  
  2323. WebServer->on("/rs", HandleRestoreConfiguration);
  2324.  
  2325. ^
  2326.  
  2327. webserver:326: error: 'HandleResetConfiguration' was not declared in this scope
  2328.  
  2329. WebServer->on("/rt", HandleResetConfiguration);
  2330.  
  2331. ^
  2332.  
  2333. webserver:327: error: 'HandleUpgradeFirmware' was not declared in this scope
  2334.  
  2335. WebServer->on("/up", HandleUpgradeFirmware);
  2336.  
  2337. ^
  2338.  
  2339. webserver:328: error: 'HandleUpgradeFirmwareStart' was not declared in this scope
  2340.  
  2341. WebServer->on("/u1", HandleUpgradeFirmwareStart); // OTA
  2342.  
  2343. ^
  2344.  
  2345. webserver:329: error: 'HandleUploadDone' was not declared in this scope
  2346.  
  2347. WebServer->on("/u2", HTTP_POST, HandleUploadDone, HandleUploadLoop);
  2348.  
  2349. ^
  2350.  
  2351. webserver:329: error: 'HandleUploadLoop' was not declared in this scope
  2352.  
  2353. WebServer->on("/u2", HTTP_POST, HandleUploadDone, HandleUploadLoop);
  2354.  
  2355. ^
  2356.  
  2357. webserver:330: error: 'HandleHttpCommand' was not declared in this scope
  2358.  
  2359. WebServer->on("/cm", HandleHttpCommand);
  2360.  
  2361. ^
  2362.  
  2363. webserver:331: error: 'HandleConsole' was not declared in this scope
  2364.  
  2365. WebServer->on("/cs", HandleConsole);
  2366.  
  2367. ^
  2368.  
  2369. webserver:332: error: 'HandleAjaxConsoleRefresh' was not declared in this scope
  2370.  
  2371. WebServer->on("/ax", HandleAjaxConsoleRefresh);
  2372.  
  2373. ^
  2374.  
  2375. webserver:333: error: 'HandleAjaxStatusRefresh' was not declared in this scope
  2376.  
  2377. WebServer->on("/ay", HandleAjaxStatusRefresh);
  2378.  
  2379. ^
  2380.  
  2381. webserver:334: error: 'HandleInformation' was not declared in this scope
  2382.  
  2383. WebServer->on("/in", HandleInformation);
  2384.  
  2385. ^
  2386.  
  2387. webserver:335: error: 'HandleRestart' was not declared in this scope
  2388.  
  2389. WebServer->on("/rb", HandleRestart);
  2390.  
  2391. ^
  2392.  
  2393. webserver:339: error: 'HandleUpnpEvent' was not declared in this scope
  2394.  
  2395. WebServer->on("/upnp/control/basicevent1", HTTP_POST, HandleUpnpEvent);
  2396.  
  2397. ^
  2398.  
  2399. webserver:340: error: 'HandleUpnpService' was not declared in this scope
  2400.  
  2401. WebServer->on("/eventservice.xml", HandleUpnpService);
  2402.  
  2403. ^
  2404.  
  2405. webserver:341: error: 'HandleUpnpMetaService' was not declared in this scope
  2406.  
  2407. WebServer->on("/metainfoservice.xml", HandleUpnpMetaService);
  2408.  
  2409. ^
  2410.  
  2411. webserver:342: error: 'HandleUpnpSetupWemo' was not declared in this scope
  2412.  
  2413. WebServer->on("/setup.xml", HandleUpnpSetupWemo);
  2414.  
  2415. ^
  2416.  
  2417. webserver:345: error: 'HandleUpnpSetupHue' was not declared in this scope
  2418.  
  2419. WebServer->on("/description.xml", HandleUpnpSetupHue);
  2420.  
  2421. ^
  2422.  
  2423. webserver:348: error: 'HandleNotFound' was not declared in this scope
  2424.  
  2425. WebServer->onNotFound(HandleNotFound);
  2426.  
  2427. ^
  2428.  
  2429. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\webserver.ino: In function 'void HandleRoot()':
  2430.  
  2431. webserver:435: error: 'CaptivePortal' was not declared in this scope
  2432.  
  2433. if (CaptivePortal()) { // If captive portal redirect instead of displaying the page.
  2434.  
  2435. ^
  2436.  
  2437. webserver:440: error: 'HandleWifiConfiguration' was not declared in this scope
  2438.  
  2439. HandleWifiConfiguration();
  2440.  
  2441. ^
  2442.  
  2443. webserver:452: error: 'LightGetColorTemp' was not declared in this scope
  2444.  
  2445. snprintf_P(line, sizeof(line), HTTP_MSG_SLIDER1, LightGetColorTemp());
  2446.  
  2447. ^
  2448.  
  2449. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\webserver.ino: In function 'void HandleAjaxStatusRefresh()':
  2450.  
  2451. webserver:515: error: 'XsnsCall' was not declared in this scope
  2452.  
  2453. XsnsCall(FUNC_WEB_APPEND);
  2454.  
  2455. ^
  2456.  
  2457. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\webserver.ino: In function 'void HandleWifiConfigurationWithScan()':
  2458.  
  2459. webserver:692: error: 'HandleWifi' was not declared in this scope
  2460.  
  2461. HandleWifi(true);
  2462.  
  2463. ^
  2464.  
  2465. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\webserver.ino: In function 'void HandleWifiConfiguration()':
  2466.  
  2467. webserver:697: error: 'HandleWifi' was not declared in this scope
  2468.  
  2469. HandleWifi(false);
  2470.  
  2471. ^
  2472.  
  2473. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\webserver.ino: In function 'void HandleWifi(boolean)':
  2474.  
  2475. webserver:713: error: 'UdpDisconnect' was not declared in this scope
  2476.  
  2477. UdpDisconnect();
  2478.  
  2479. ^
  2480.  
  2481. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\webserver.ino: In function 'void HandleSaveSettings()':
  2482.  
  2483. webserver:990: error: 'MQTT_USER' was not declared in this scope
  2484.  
  2485. strlcpy(Settings.mqtt_user, (!strlen(WebServer->arg("mu").c_str())) ? MQTT_USER : (!strcmp(WebServer->arg("mu").c_str(),"0")) ? "" : WebServer->arg("mu").c_str(), sizeof(Settings.mqtt_user));
  2486.  
  2487. ^
  2488.  
  2489. webserver:991: error: 'MQTT_PASS' was not declared in this scope
  2490.  
  2491. strlcpy(Settings.mqtt_pwd, (!strlen(WebServer->arg("mp").c_str())) ? MQTT_PASS : (!strcmp(WebServer->arg("mp").c_str(),"0")) ? "" : WebServer->arg("mp").c_str(), sizeof(Settings.mqtt_pwd));
  2492.  
  2493. ^
  2494.  
  2495. webserver:1014: error: 'DomoticzSaveSettings' was not declared in this scope
  2496.  
  2497. DomoticzSaveSettings();
  2498.  
  2499. ^
  2500.  
  2501. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\webserver.ino: In function 'void HandleUploadLoop()':
  2502.  
  2503. webserver:1236: error: 'UdpDisconnect' was not declared in this scope
  2504.  
  2505. UdpDisconnect();
  2506.  
  2507. ^
  2508.  
  2509. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\webserver.ino: In function 'void HandleNotFound()':
  2510.  
  2511. webserver:1601: error: 'CaptivePortal' was not declared in this scope
  2512.  
  2513. if (CaptivePortal()) { // If captive portal redirect instead of displaying the error page.
  2514.  
  2515. ^
  2516.  
  2517. webserver:1608: error: 'HandleHueApi' was not declared in this scope
  2518.  
  2519. HandleHueApi(&path);
  2520.  
  2521. ^
  2522.  
  2523. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\webserver.ino: In function 'boolean CaptivePortal()':
  2524.  
  2525. webserver:1630: error: 'ValidIpAddress' was not declared in this scope
  2526.  
  2527. if ((HTTP_MANAGER == webserver_state) && !ValidIpAddress(WebServer->hostHeader())) {
  2528.  
  2529. ^
  2530.  
  2531. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\xdrv_01_light.ino: In function 'void LightInit()':
  2532.  
  2533. xdrv_01_light:381: error: 'Ws2812Init' was not declared in this scope
  2534.  
  2535. Ws2812Init();
  2536.  
  2537. ^
  2538.  
  2539. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\xdrv_01_light.ino: In function 'void LightPreparePower()':
  2540.  
  2541. xdrv_01_light:545: error: 'DomoticzUpdatePowerState' was not declared in this scope
  2542.  
  2543. DomoticzUpdatePowerState(devices_present);
  2544.  
  2545. ^
  2546.  
  2547. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\xdrv_01_light.ino: In function 'void LightSetPower()':
  2548.  
  2549. xdrv_01_light:646: error: 'LightAnimate' was not declared in this scope
  2550.  
  2551. LightAnimate();
  2552.  
  2553. ^
  2554.  
  2555. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\xdrv_01_light.ino: In function 'void LightAnimate()':
  2556.  
  2557. xdrv_01_light:722: error: 'Ws2812ShowScheme' was not declared in this scope
  2558.  
  2559. Ws2812ShowScheme(Settings.light_scheme -LS_MAX);
  2560.  
  2561. ^
  2562.  
  2563. xdrv_01_light:753: error: 'Ws2812SetColor' was not declared in this scope
  2564.  
  2565. Ws2812SetColor(0, cur_col[0], cur_col[1], cur_col[2], cur_col[3]);
  2566.  
  2567. ^
  2568.  
  2569. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\xdrv_01_light.ino: In function 'boolean LightCommand()':
  2570.  
  2571. xdrv_01_light:1047: error: 'Ws2812SetColor' was not declared in this scope
  2572.  
  2573. Ws2812SetColor(XdrvMailbox.index, light_entry_color[0], light_entry_color[1], light_entry_color[2], light_entry_color[3]);
  2574.  
  2575. ^
  2576.  
  2577. xdrv_01_light:1050: error: 'Ws2812GetColor' was not declared in this scope
  2578.  
  2579. snprintf_P(mqtt_data, sizeof(mqtt_data), S_JSON_COMMAND_INDEX_SVALUE, command, XdrvMailbox.index, Ws2812GetColor(XdrvMailbox.index, scolor));
  2580.  
  2581. ^
  2582.  
  2583. xdrv_01_light:1055: error: 'Ws2812Clear' was not declared in this scope
  2584.  
  2585. Ws2812Clear();
  2586.  
  2587. ^
  2588.  
  2589. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\xdrv_02_irremote.ino: In function 'void IrReceiveCheck()':
  2590.  
  2591. xdrv_02_irremote:115: error: 'DomoticzSensor' was not declared in this scope
  2592.  
  2593. DomoticzSensor(DZ_COUNT, value); // Send data as Domoticz Counter value
  2594.  
  2595. ^
  2596.  
  2597. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\xdrv_03_energy.ino: In function 'void EnergyMarginCheck()':
  2598.  
  2599. xdrv_03_energy:559: error: 'EnergyMqttShow' was not declared in this scope
  2600.  
  2601. EnergyMqttShow();
  2602.  
  2603. ^
  2604.  
  2605. xdrv_03_energy:574: error: 'EnergyMqttShow' was not declared in this scope
  2606.  
  2607. EnergyMqttShow();
  2608.  
  2609. ^
  2610.  
  2611. xdrv_03_energy:601: error: 'EnergyMqttShow' was not declared in this scope
  2612.  
  2613. EnergyMqttShow();
  2614.  
  2615. ^
  2616.  
  2617. xdrv_03_energy:622: error: 'EnergyMqttShow' was not declared in this scope
  2618.  
  2619. EnergyMqttShow();
  2620.  
  2621. ^
  2622.  
  2623. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\xdrv_03_energy.ino: In function 'void EnergyMqttShow()':
  2624.  
  2625. xdrv_03_energy:633: error: 'EnergyShow' was not declared in this scope
  2626.  
  2627. EnergyShow(1);
  2628.  
  2629. ^
  2630.  
  2631. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\xdrv_03_energy.ino: In function 'void EnergyShow(boolean)':
  2632.  
  2633. xdrv_03_energy:912: error: 'DomoticzSensorPowerEnergy' was not declared in this scope
  2634.  
  2635. DomoticzSensorPowerEnergy((uint16_t)energy_power, energy_total_chr); // PowerUsage, EnergyToday
  2636.  
  2637. ^
  2638.  
  2639. xdrv_03_energy:913: error: 'DomoticzSensor' was not declared in this scope
  2640.  
  2641. DomoticzSensor(DZ_VOLTAGE, energy_voltage_chr); // Voltage
  2642.  
  2643. ^
  2644.  
  2645. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\xdrv_04_snfbridge.ino: In function 'void SonoffBridgeReceived()':
  2646.  
  2647. xdrv_04_snfbridge:107: error: 'DomoticzSensor' was not declared in this scope
  2648.  
  2649. DomoticzSensor(DZ_COUNT, received_id); // Send rid as Domoticz Counter value
  2650.  
  2651. ^
  2652.  
  2653. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\xdrv_interface.ino: In function 'void XDrvInit()':
  2654.  
  2655. xdrv_interface:70: error: 'XdrvCall' was not declared in this scope
  2656.  
  2657. XdrvCall(FUNC_INIT);
  2658.  
  2659. ^
  2660.  
  2661. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\xdrv_interface.ino: In function 'boolean XdrvCommand(char*, uint16_t, char*, uint16_t, int16_t)':
  2662.  
  2663. xdrv_interface:82: error: 'XdrvCall' was not declared in this scope
  2664.  
  2665. return XdrvCall(FUNC_COMMAND);
  2666.  
  2667. ^
  2668.  
  2669. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\xdrv_interface.ino: In function 'void XdrvSetPower(uint8_t)':
  2670.  
  2671. xdrv_interface:90: error: 'XdrvCall' was not declared in this scope
  2672.  
  2673. XdrvCall(FUNC_SET_POWER);
  2674.  
  2675. ^
  2676.  
  2677. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\xdrv_interface.ino: In function 'boolean XdrvMqttData(char*, uint16_t, char*, uint16_t)':
  2678.  
  2679. xdrv_interface:100: error: 'XdrvCall' was not declared in this scope
  2680.  
  2681. return XdrvCall(FUNC_MQTT_DATA);
  2682.  
  2683. ^
  2684.  
  2685. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\xplg_ws2812.ino: In function 'void Ws2812Init()':
  2686.  
  2687. xplg_ws2812:322: error: 'Ws2812Clear' was not declared in this scope
  2688.  
  2689. Ws2812Clear();
  2690.  
  2691. ^
  2692.  
  2693. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\xsns_07_sht1x.ino: In function 'boolean ShtReset()':
  2694.  
  2695. xsns_07_sht1x:50: error: 'ShtSendCommand' was not declared in this scope
  2696.  
  2697. boolean success = ShtSendCommand(SHT1X_CMD_SOFT_RESET);
  2698.  
  2699. ^
  2700.  
  2701. H:\Arduino\arduino-1.8.5\portable\sketchbook\Sonoff\xsns_interface.ino: In function 'void XSnsInit()':
  2702.  
  2703. xsns_interface:110: error: 'XsnsCall' was not declared in this scope
  2704.  
  2705. XsnsCall(FUNC_INIT);
  2706.  
  2707. ^
  2708.  
  2709. exit status 1
  2710. 'RtcSettings' was not declared in this scope
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement