arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.24k stars 4.82k forks source link

sonoff:317: error: 'ShowSource' was not declared in this scope #3241

Closed pumino79 closed 6 years ago

pumino79 commented 6 years ago

Describe the bug

Arduino ide 1.8.5 Tasmota 6.11

When I compile I receive this error:

C:\Users\lomazan1\Documents\Arduino\sonoff\sonoff.ino: In function 'void SetDevicePower(power_t, int)':

sonoff:317: error: 'ShowSource' was not declared in this scope

ShowSource(source);

                ^

sonoff:336: error: 'XdrvSetPower' was not declared in this scope

XdrvSetPower(rpower);

                  ^

C:\Users\lomazan1\Documents\Arduino\sonoff\sonoff.ino: In function 'void MqttDataHandler(char, byte, unsigned int)':

sonoff:415: error: 'ShowFreeMem' was not declared in this scope

ShowFreeMem(PSTR("MqttDataHandler"));

                                  ^

sonoff:425: error: 'ShowSource' was not declared in this scope

if (topicBuf[0] != '/') { ShowSource(SRC_MQTT); }

                                            ^

sonoff:429: error: 'AddLog' was not declared in this scope

AddLog(LOG_LEVEL_DEBUG_MORE);

                          ^

sonoff:432: error: 'XdrvMqttData' was not declared in this scope

if (XdrvMqttData(topicBuf, sizeof(topicBuf), dataBuf, sizeof(dataBuf))) return;

                                                                    ^

sonoff:473: error: 'GetStateNumber' was not declared in this scope

 int temp_payload = GetStateNumber(dataBuf);

                                          ^

sonoff:479: error: 'GetCommandCode' was not declared in this scope

 int command_code = GetCommandCode(command, sizeof(command), type, kTasmotaCommands);

                                                                                   ^

sonoff:481: error: 'XdrvCommand' was not declared in this scope

   if (!XdrvCommand(grpflg, type, index, dataBuf, data_len, payload, payload16)) {

                                                                              ^

sonoff:492: error: 'LTrim' was not declared in this scope

         blcommand = LTrim(blcommand);

                                    ^

sonoff:521: error: 'ExecuteCommandPower' was not declared in this scope

   ExecuteCommandPower(index, payload, SRC_IGNORE);

                                                 ^

sonoff:530: error: 'ExecuteCommandPower' was not declared in this scope

       ExecuteCommandPower(i +2, state, SRC_IGNORE);  // Use relay 2, 3 and 4

                                                  ^

sonoff:537: error: 'PublishStatus' was not declared in this scope

   PublishStatus(payload);

                        ^

sonoff:543: error: 'MqttShowState' was not declared in this scope

   MqttShowState();

                 ^

sonoff:558: error: 'NewerVersion' was not declared in this scope

   if (((1 == data_len) && (1 == payload)) || ((data_len >= 3) && NewerVersion(dataBuf))) {

                                                                                      ^

sonoff:574: error: 'SetSeriallog' was not declared in this scope

     SetSeriallog(payload);

                         ^

sonoff:585: error: 'AddLog_P' was not declared in this scope

     AddLog_P(LOG_LEVEL_INFO, PSTR(D_LOG_APPLICATION D_RESTARTING));

                                                                  ^

sonoff:586: error: 'EspRestart' was not declared in this scope

     EspRestart();

                ^

sonoff:604: error: 'ExecuteCommandPower' was not declared in this scope

         ExecuteCommandPower(i, POWER_ON, SRC_IGNORE);

                                                    ^

sonoff:636: error: 'SettingsSaveAll' was not declared in this scope

   SettingsSaveAll();

                   ^

sonoff:650: error: 'XsnsCall' was not declared in this scope

   XsnsCall(FUNC_COMMAND);

                        ^

sonoff:689: error: 'SettingsSave' was not declared in this scope

           SettingsSave(2);

                         ^

sonoff:693: error: 'HAssDiscovery' was not declared in this scope

           HAssDiscovery(1);  // hass_discovery or hass_light

                          ^

sonoff:795: error: 'MqttPublishPrefixTopic_P' was not declared in this scope

       MqttPublishPrefixTopic_P(RESULT_OR_STAT, type);

                                                    ^

sonoff:821: error: 'GetTextIndexed' was not declared in this scope

         mqtt_data, i, Settings.my_gp.io[i], GetTextIndexed(stemp1, sizeof(stemp1), Settings.my_gp.io[i], kSensorNames));

                                                                                                                      ^

sonoff:840: error: 'GetUsedInModule' was not declared in this scope

     if (!GetUsedInModule(i, cmodule.gp.io)) {

                                          ^

sonoff:841: error: 'GetTextIndexed' was not declared in this scope

       snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("%s\"%d (%s)\""), mqtt_data, i, GetTextIndexed(stemp1, sizeof(stemp1), i, kSensorNames));

                                                                                                                                           ^

sonoff:844: error: 'MqttPublishPrefixTopic_P' was not declared in this scope

         MqttPublishPrefixTopic_P(RESULT_OR_STAT, type);

                                                      ^

sonoff:858: error: 'MqttShowPWMState' was not declared in this scope

   MqttShowPWMState();  // Render the PWM status to MQTT

                    ^

sonoff:910: error: 'SetSerialBaudrate' was not declared in this scope

     SetSerialBaudrate(baudrate);

                               ^

sonoff:915: error: 'SetSeriallog' was not declared in this scope

   SetSeriallog(LOG_LEVEL_NONE);

                              ^

sonoff:926: error: 'Unescape' was not declared in this scope

       Serial.printf("%s", Unescape(dataBuf, &dat_len));

                                                     ^

sonoff:937: error: 'Unescape' was not declared in this scope

       Unescape(dataBuf, &dat_len);

                                 ^

sonoff:962: error: 'ParseIp' was not declared in this scope

   if (ParseIp(&address, dataBuf)) {

                                ^

sonoff:1027: error: 'WifiState' was not declared in this scope

     if (WifiState() != WIFI_RESTART) {

                   ^

sonoff:1097: error: 'LTrim' was not declared in this scope

         p = LTrim(p);                        // Skip spaces

                    ^

sonoff:1108: error: 'SettingsResetStd' was not declared in this scope

           SettingsResetStd();

                            ^

sonoff:1110: error: 'SettingsResetDst' was not declared in this scope

           SettingsResetDst();

                            ^

sonoff:1149: error: 'I2cScan' was not declared in this scope

   I2cScan(mqtt_data, sizeof(mqtt_data));

                                       ^

sonoff:1160: error: 'MqttPublishPrefixTopic_P' was not declared in this scope

if (mqtt_data[0] != '\0') MqttPublishPrefixTopic_P(RESULT_OR_STAT, type);

                                                                      ^

C:\Users\lomazan1\Documents\Arduino\sonoff\sonoff.ino: In function 'boolean SendKey(byte, byte, byte)':

sonoff:1183: error: 'MqttIsConnected' was not declared in this scope

if (Settings.flag.mqtt_enabled && MqttIsConnected() && (strlen(key_topic) != 0) && strcmp(key_topic, "0")) {

                                                 ^

sonoff:1185: error: 'GetPowerDevice' was not declared in this scope

 GetTopic_P(stopic, CMND, key_topic, GetPowerDevice(scommand, device, sizeof(scommand), key));   // cmnd/switchtopic/POWERx

                                                                                           ^

sonoff:1195: error: 'DomoticzSendKey' was not declared in this scope

 if (!(DomoticzSendKey(key, device, state, strlen(mqtt_data)))) {

                                                            ^

sonoff:1196: error: 'MqttPublishDirect' was not declared in this scope

   MqttPublishDirect(stopic, (key) ? Settings.flag.mqtt_switch_retain : Settings.flag.mqtt_button_retain);

                                                                                                        ^

sonoff:1204: error: 'XdrvRulesProcess' was not declared in this scope

 result = XdrvRulesProcess();

                           ^

C:\Users\lomazan1\Documents\Arduino\sonoff\sonoff.ino: In function 'void ExecuteCommandPower(byte, byte, int)':

sonoff:1245: error: 'MqttPublishPowerBlinkState' was not declared in this scope

   MqttPublishPowerBlinkState(device);

                                    ^

sonoff:1267: error: 'DomoticzUpdatePowerState' was not declared in this scope

 DomoticzUpdatePowerState(device);

                                ^

sonoff:1285: error: 'MqttPublishPowerBlinkState' was not declared in this scope

 MqttPublishPowerBlinkState(device);

                                  ^

sonoff:1291: error: 'MqttPublishPowerBlinkState' was not declared in this scope

 MqttPublishPowerBlinkState(device);

                                  ^

sonoff:1295: error: 'MqttPublishPowerState' was not declared in this scope

if (publish_power) MqttPublishPowerState(device);

                                              ^

C:\Users\lomazan1\Documents\Arduino\sonoff\sonoff.ino: In function 'void StopAllPowerBlink()':

sonoff:1306: error: 'MqttPublishPowerBlinkState' was not declared in this scope

   MqttPublishPowerBlinkState(i);

                               ^

C:\Users\lomazan1\Documents\Arduino\sonoff\sonoff.ino: In function 'void ExecuteCommand(char*, int)':

sonoff:1319: error: 'ShowFreeMem' was not declared in this scope

ShowFreeMem(PSTR("ExecuteCommand"));

                                 ^

sonoff:1320: error: 'ShowSource' was not declared in this scope

ShowSource(source);

                ^

C:\Users\lomazan1\Documents\Arduino\sonoff\sonoff.ino: In function 'void PublishStatus(uint8_t)':

sonoff:1354: error: 'MqttPublishPrefixTopic_P' was not declared in this scope

 MqttPublishPrefixTopic_P(option, PSTR(D_CMND_STATUS));

                                                     ^

sonoff:1359: error: 'GetResetReason' was not declared in this scope

   baudrate, Settings.mqtt_grptopic, Settings.ota_url, GetResetReason().c_str(), GetDateAndTime(DT_UPTIME).c_str(), GetDateAndTime(DT_RESTART).c_str(), Settings.sleep, Settings.bootcount, Settings.save_flag, GetSettingsAddress());

                                                                      ^

sonoff:1359: error: 'GetDateAndTime' was not declared in this scope

   baudrate, Settings.mqtt_grptopic, Settings.ota_url, GetResetReason().c_str(), GetDateAndTime(DT_UPTIME).c_str(), GetDateAndTime(DT_RESTART).c_str(), Settings.sleep, Settings.bootcount, Settings.save_flag, GetSettingsAddress());

                                                                                                         ^

sonoff:1359: error: 'GetSettingsAddress' was not declared in this scope

   baudrate, Settings.mqtt_grptopic, Settings.ota_url, GetResetReason().c_str(), GetDateAndTime(DT_UPTIME).c_str(), GetDateAndTime(DT_RESTART).c_str(), Settings.sleep, Settings.bootcount, Settings.save_flag, GetSettingsAddress());

                                                                                                                                                                                                                                   ^

sonoff:1360: error: 'MqttPublishPrefixTopic_P' was not declared in this scope

 MqttPublishPrefixTopic_P(option, PSTR(D_CMND_STATUS "1"));

                                                         ^

sonoff:1365: error: 'GetBuildDateAndTime' was not declared in this scope

   my_version, GetBuildDateAndTime().c_str(), ESP.getBootVersion(), ESP.getSdkVersion());

                                   ^

sonoff:1366: error: 'MqttPublishPrefixTopic_P' was not declared in this scope

 MqttPublishPrefixTopic_P(option, PSTR(D_CMND_STATUS "2"));

                                                         ^

sonoff:1372: error: 'MqttPublishPrefixTopic_P' was not declared in this scope

 MqttPublishPrefixTopic_P(option, PSTR(D_CMND_STATUS "3"));

                                                         ^

sonoff:1378: error: 'MqttPublishPrefixTopic_P' was not declared in this scope

 MqttPublishPrefixTopic_P(option, PSTR(D_CMND_STATUS "4"));

                                                         ^

sonoff:1385: error: 'MqttPublishPrefixTopic_P' was not declared in this scope

 MqttPublishPrefixTopic_P(option, PSTR(D_CMND_STATUS "5"));

                                                         ^

sonoff:1390: error: 'MqttLibraryType' was not declared in this scope

   Settings.mqtt_host, Settings.mqtt_port, Settings.mqtt_client, mqtt_client, Settings.mqtt_user, MqttLibraryType(), MQTT_MAX_PACKET_SIZE, MQTT_KEEPALIVE);

                                                                                                                  ^

sonoff:1391: error: 'MqttPublishPrefixTopic_P' was not declared in this scope

 MqttPublishPrefixTopic_P(option, PSTR(D_CMND_STATUS "6"));

                                                         ^

sonoff:1397: error: 'GetTime' was not declared in this scope

   GetTime(0).c_str(), GetTime(1).c_str(), GetTime(2).c_str(), GetTime(3).c_str(), Settings.timezone, GetSun(0).c_str(), GetSun(1).c_str());

            ^

sonoff:1397: error: 'GetSun' was not declared in this scope

   GetTime(0).c_str(), GetTime(1).c_str(), GetTime(2).c_str(), GetTime(3).c_str(), Settings.timezone, GetSun(0).c_str(), GetSun(1).c_str());

                                                                                                              ^

sonoff:1402: error: 'MqttPublishPrefixTopic_P' was not declared in this scope

 MqttPublishPrefixTopic_P(option, PSTR(D_CMND_STATUS "7"));

                                                         ^

sonoff:1409: error: 'MqttPublishPrefixTopic_P' was not declared in this scope

   MqttPublishPrefixTopic_P(option, PSTR(D_CMND_STATUS "9"));

                                                           ^

sonoff:1415: error: 'MqttShowSensor' was not declared in this scope

 MqttShowSensor();

                ^

sonoff:1418: error: 'MqttPublishPrefixTopic_P' was not declared in this scope

   MqttPublishPrefixTopic_P(option, PSTR(D_CMND_STATUS "8"));

                                                           ^

sonoff:1420: error: 'MqttPublishPrefixTopic_P' was not declared in this scope

   MqttPublishPrefixTopic_P(option, PSTR(D_CMND_STATUS "10"));

                                                            ^

sonoff:1426: error: 'MqttShowState' was not declared in this scope

 MqttShowState();

               ^

sonoff:1428: error: 'MqttPublishPrefixTopic_P' was not declared in this scope

 MqttPublishPrefixTopic_P(option, PSTR(D_CMND_STATUS "11"));

                                                          ^

C:\Users\lomazan1\Documents\Arduino\sonoff\sonoff.ino: In function 'void MqttShowState()':

sonoff:1450: error: 'GetDateAndTime' was not declared in this scope

snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("%s{\"" D_JSON_TIME "\":\"%s\",\"" D_JSON_UPTIME "\":\"%s\""), mqtt_data, GetDateAndTime(DT_LOCAL).c_str(), GetDateAndTime(DT_UPTIME).c_str());

                                                                                                                                              ^

sonoff:1452: error: 'dtostrfd' was not declared in this scope

dtostrfd((double)ESP.getVcc()/1000, 3, stemp1);

                                            ^

sonoff:1458: error: 'LightState' was not declared in this scope

   LightState(1);

               ^

sonoff:1460: error: 'GetPowerDevice' was not declared in this scope

   snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("%s,\"%s\":\"%s\""), mqtt_data, GetPowerDevice(stemp1, i +1, sizeof(stemp1), Settings.flag.device_index_enable), GetStateText(bitRead(power, i)));

                                                                                                                                                               ^

sonoff:1474: error: 'WifiGetRssiAsQuality' was not declared in this scope

 mqtt_data, Settings.sta_active +1, Settings.sta_ssid[Settings.sta_active], WifiGetRssiAsQuality(WiFi.RSSI()), WiFi.BSSIDstr().c_str());

                                                                                                            ^

C:\Users\lomazan1\Documents\Arduino\sonoff\sonoff.ino: In function 'boolean MqttShowSensor()':

sonoff:1479: error: 'GetDateAndTime' was not declared in this scope

snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("%s{\"" D_JSON_TIME "\":\"%s\""), mqtt_data, GetDateAndTime(DT_LOCAL).c_str());

                                                                                                                 ^

sonoff:1491: error: 'XsnsCall' was not declared in this scope

XsnsCall(FUNC_JSON_APPEND);

                        ^

sonoff:1494: error: 'TempUnit' was not declared in this scope

 snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("%s,\"" D_JSON_TEMPERATURE_UNIT "\":\"%c\""), mqtt_data, TempUnit());

                                                                                                                 ^

sonoff:1498: error: 'XdrvCall' was not declared in this scope

if (json_data_available) XdrvCall(FUNC_SHOW_SENSOR);

                                                 ^

C:\Users\lomazan1\Documents\Arduino\sonoff\sonoff.ino: In function 'void PerformEverySecond()':

sonoff:1518: error: 'AddLog_P' was not declared in this scope

     AddLog_P(LOG_LEVEL_INFO, PSTR(D_LOG_APPLICATION D_SERIAL_LOGGING_DISABLED));

                                                                               ^

sonoff:1529: error: 'AddLog_P' was not declared in this scope

     AddLog_P(LOG_LEVEL_INFO, PSTR(D_LOG_APPLICATION D_SYSLOG_LOGGING_REENABLED));  // Might trigger disable again (on purpose)

                                                                                ^

sonoff:1538: error: 'MqttPublishPowerState' was not declared in this scope

     MqttPublishPowerState(i);

                            ^

sonoff:1547: error: 'XsnsCall' was not declared in this scope

   XsnsCall(FUNC_PREP_BEFORE_TELEPERIOD);

                                       ^

sonoff:1554: error: 'MqttPublishPrefixTopic_P' was not declared in this scope

   MqttPublishPrefixTopic_P(TELE, PSTR(D_RSLT_STATE), MQTT_TELE_RETAIN);

                                                                      ^

sonoff:1560: error: 'RulesTeleperiod' was not declared in this scope

     RulesTeleperiod();  // Allow rule based HA messages

                     ^

sonoff:1566: error: 'XdrvCall' was not declared in this scope

XdrvCall(FUNC_EVERY_SECOND);

                         ^

sonoff:1567: error: 'XsnsCall' was not declared in this scope

XsnsCall(FUNC_EVERY_SECOND);

                         ^

sonoff:1571: error: 'GetDateAndTime' was not declared in this scope

 snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("{\"" D_JSON_TIME "\":\"%s\",\"" D_JSON_UPTIME "\":\"%s\"}"), GetDateAndTime(DT_LOCAL).c_str(), GetDateAndTime(DT_UPTIME).c_str());

                                                                                                                                    ^

sonoff:1572: error: 'MqttPublishPrefixTopic_P' was not declared in this scope

 MqttPublishPrefixTopic_P(TELE, PSTR(D_RSLT_UPTIME));

                                                   ^

C:\Users\lomazan1\Documents\Arduino\sonoff\sonoff.ino: In function 'void ButtonHandler()':

sonoff:1597: error: 'AddLog' was not declared in this scope

     AddLog(LOG_LEVEL_DEBUG);

                           ^

sonoff:1619: error: 'AddLog' was not declared in this scope

       AddLog(LOG_LEVEL_DEBUG);

                             ^

sonoff:1625: error: 'AddLog' was not declared in this scope

       AddLog(LOG_LEVEL_DEBUG);

                             ^

sonoff:1637: error: 'AddLog' was not declared in this scope

         AddLog(LOG_LEVEL_DEBUG);

                               ^

sonoff:1644: error: 'AddLog' was not declared in this scope

         AddLog(LOG_LEVEL_DEBUG);

                               ^

sonoff:1694: error: 'WifiState' was not declared in this scope

               if (WifiState()) {                  // WPSconfig, Smartconfig or Wifimanager active

                             ^

C:\Users\lomazan1\Documents\Arduino\sonoff\sonoff.ino: In function 'void StateLoop()':

sonoff:1877: error: 'XdrvCall' was not declared in this scope

XdrvCall(FUNC_EVERY_50_MSECOND);

                             ^

sonoff:1878: error: 'XsnsCall' was not declared in this scope

XsnsCall(FUNC_EVERY_50_MSECOND);

                             ^

sonoff:1933: error: 'SettingsSave' was not declared in this scope

     SettingsSave(1);  // Free flash for OTA update

                   ^

sonoff:1937: error: 'StopWebserver' was not declared in this scope

     if (Settings.webserver) StopWebserver();

                                           ^

sonoff:1940: error: 'AriluxRfDisable' was not declared in this scope

     AriluxRfDisable();  // Prevent restart exception on Arilux Interrupt routine

                     ^

sonoff:1960: error: 'AddLog' was not declared in this scope

       AddLog(LOG_LEVEL_DEBUG);

                             ^

sonoff:1978: error: 'SetFlashModeDout' was not declared in this scope

       SetFlashModeDout();      // Force DOUT for both ESP8266 and ESP8285

                        ^

sonoff:1984: error: 'MqttPublishPrefixTopic_P' was not declared in this scope

     MqttPublishPrefixTopic_P(STAT, PSTR(D_CMND_UPGRADE));

                                                        ^

sonoff:1989: error: 'MidnightNow' was not declared in this scope

 if (MidnightNow()) CounterSaveState();

                 ^

sonoff:1989: error: 'CounterSaveState' was not declared in this scope

 if (MidnightNow()) CounterSaveState();

                                     ^

sonoff:2006: error: 'SettingsSave' was not declared in this scope

     SettingsSave(0);

                   ^

sonoff:2012: error: 'SettingsSdkErase' was not declared in this scope

     SettingsSdkErase();  // Erase flash SDK parameters

                      ^

sonoff:2015: error: 'SettingsErase' was not declared in this scope

     SettingsErase(0);    // Erase all flash from program end to end of physical flash

                    ^

sonoff:2019: error: 'SettingsDefault' was not declared in this scope

     SettingsDefault();

                     ^

sonoff:2022: error: 'SettingsSaveAll' was not declared in this scope

   SettingsSaveAll();

                   ^

sonoff:2025: error: 'AddLog_P' was not declared in this scope

     AddLog_P(LOG_LEVEL_INFO, PSTR(D_LOG_APPLICATION D_RESTARTING));

                                                                  ^

sonoff:2026: error: 'EspRestart' was not declared in this scope

     EspRestart();

                ^

sonoff:2031: error: 'WifiCheck' was not declared in this scope

 WifiCheck(wifi_state_flag);

                          ^

sonoff:2035: error: 'MqttCheck' was not declared in this scope

 if (WL_CONNECTED == WiFi.status()) MqttCheck();

                                              ^

C:\Users\lomazan1\Documents\Arduino\sonoff\sonoff.ino: In function 'void SerialInput()':

sonoff:2152: error: 'SonoffBridgeSerialInput' was not declared in this scope

   if (SonoffBridgeSerialInput()) {

                               ^

sonoff:2164: error: 'CseSerialInput' was not declared in this scope

   if (CseSerialInput()) {

                      ^

sonoff:2204: error: 'SonoffScSerialInput' was not declared in this scope

     SonoffScSerialInput(serial_in_buffer);

                                         ^

sonoff:2217: error: 'AddLog' was not declared in this scope

   AddLog(LOG_LEVEL_INFO);

                        ^

sonoff:2229: error: 'MqttPublishPrefixTopic_P' was not declared in this scope

 MqttPublishPrefixTopic_P(RESULT_OR_TELE, PSTR(D_JSON_SERIALRECEIVED));

                                                                     ^

C:\Users\lomazan1\Documents\Arduino\sonoff\sonoff.ino: In function 'void GpioInit()':

sonoff:2282: error: 'DhtSetup' was not declared in this scope

     if (DhtSetup(i, mpin)) {

                         ^

sonoff:2413: error: 'XdrvCall' was not declared in this scope

XdrvCall(FUNC_PRE_INIT);

                     ^

C:\Users\lomazan1\Documents\Arduino\sonoff\sonoff.ino: In function 'void setup()':

sonoff:2439: error: 'SettingsLoad' was not declared in this scope

SettingsLoad();

            ^

sonoff:2440: error: 'SettingsDelta' was not declared in this scope

SettingsDelta();

             ^

sonoff:2442: error: 'OsWatchInit' was not declared in this scope

OsWatchInit();

           ^

sonoff:2444: error: 'GetFeatures' was not declared in this scope

GetFeatures();

           ^

sonoff:2459: error: 'AddLog' was not declared in this scope

AddLog(LOG_LEVEL_DEBUG);

                     ^

sonoff:2463: error: 'SetSerialBaudrate' was not declared in this scope

SetSerialBaudrate(baudrate);

                         ^

sonoff:2474: error: 'WifiConnect' was not declared in this scope

WifiConnect();

           ^

sonoff:2532: error: 'RtcInit' was not declared in this scope

RtcInit();

       ^

sonoff:2538: error: 'XdrvCall' was not declared in this scope

XdrvCall(FUNC_INIT);

                 ^

sonoff:2539: error: 'XsnsCall' was not declared in this scope

XsnsCall(FUNC_INIT);

                 ^

C:\Users\lomazan1\Documents\Arduino\sonoff\sonoff.ino: In function 'void loop()':

sonoff:2544: error: 'XdrvCall' was not declared in this scope

XdrvCall(FUNC_LOOP);

                 ^

sonoff:2546: error: 'OsWatchLoop' was not declared in this scope

OsWatchLoop();

           ^

C:\Users\lomazan1\Documents\Arduino\sonoff\settings.ino: In function 'bool SettingsBufferAlloc()':

settings:180: error: 'AddLog_P' was not declared in this scope

 AddLog_P(LOG_LEVEL_DEBUG, PSTR(D_LOG_APPLICATION D_UPLOAD_ERR_2));  // Not enough (memory) space

                                                                 ^

C:\Users\lomazan1\Documents\Arduino\sonoff\settings.ino: In function 'void SettingsSaveAll()':

settings:204: error: 'XsnsCall' was not declared in this scope

XsnsCall(FUNC_SAVE_BEFORE_RESTART);

                                ^

settings:205: error: 'SettingsSave' was not declared in this scope

SettingsSave(0);

             ^

C:\Users\lomazan1\Documents\Arduino\sonoff\settings.ino: In function 'void SettingsSave(byte)':

settings:256: error: 'AddLog' was not declared in this scope

 AddLog(LOG_LEVEL_DEBUG);

                       ^

C:\Users\lomazan1\Documents\Arduino\sonoff\settings.ino: In function 'void SettingsLoad()':

settings:287: error: 'AddLog' was not declared in this scope

AddLog(LOG_LEVEL_DEBUG);

                     ^

settings:289: error: 'SettingsDefault' was not declared in this scope

if (bad_crc || (Settings.cfg_holder != (uint16_t)CFG_HOLDER)) { SettingsDefault(); }

                                                                               ^

C:\Users\lomazan1\Documents\Arduino\sonoff\settings.ino: In function 'void SettingsErase(uint8_t)':

settings:314: error: 'AddLog' was not declared in this scope

AddLog(LOG_LEVEL_DEBUG);

                     ^

settings:328: error: 'OsWatchLoop' was not declared in this scope

 OsWatchLoop();

             ^

C:\Users\lomazan1\Documents\Arduino\sonoff\settings.ino: In function 'void SettingsDefault()':

settings:357: error: 'AddLog_P' was not declared in this scope

AddLog_P(LOG_LEVEL_NONE, PSTR(D_LOG_CONFIG D_USE_DEFAULTS));

                                                         ^

settings:358: error: 'SettingsDefaultSet1' was not declared in this scope

SettingsDefaultSet1();

                   ^

settings:359: error: 'SettingsDefaultSet2' was not declared in this scope

SettingsDefaultSet2();

                   ^

C:\Users\lomazan1\Documents\Arduino\sonoff\settings.ino: In function 'void SettingsDefaultSet2()':

settings:411: error: 'ParseIp' was not declared in this scope

ParseIp(&Settings.ip_address[0], WIFI_IP_ADDRESS);

                                               ^

settings:569: error: 'SettingsDefaultSet_5_8_1' was not declared in this scope

SettingsDefaultSet_5_8_1(); // Clock color

                        ^

settings:572: error: 'SettingsDefaultSet_5_10_1' was not declared in this scope

SettingsDefaultSet_5_10_1(); // Display settings

                         ^

settings:588: error: 'SettingsDefaultSet_5_13_1c' was not declared in this scope

SettingsDefaultSet_5_13_1c(); // Time STD/DST settings

                          ^

C:\Users\lomazan1\Documents\Arduino\sonoff\support.ino: In function 'void SetSerialBaudrate(int)':

support:609: error: 'AddLog' was not declared in this scope

   AddLog(LOG_LEVEL_INFO);

                        ^

C:\Users\lomazan1\Documents\Arduino\sonoff\support.ino: In function 'void ClaimSerial()':

support:622: error: 'AddLog_P' was not declared in this scope

AddLog_P(LOG_LEVEL_INFO, PSTR("SNS: Hardware Serial"));

                                                    ^

support:623: error: 'SetSeriallog' was not declared in this scope

SetSeriallog(LOG_LEVEL_NONE);

                          ^

C:\Users\lomazan1\Documents\Arduino\sonoff\support.ino: In function 'void ShowSource(int)':

support:642: error: 'AddLog' was not declared in this scope

 AddLog(LOG_LEVEL_DEBUG);

                       ^

C:\Users\lomazan1\Documents\Arduino\sonoff\support.ino: In function 'void WifiWpsStatusCallback(wps_cb_status)':

support:950: error: 'AddLog' was not declared in this scope

 AddLog(LOG_LEVEL_DEBUG);

                       ^

C:\Users\lomazan1\Documents\Arduino\sonoff\support.ino: In function 'void WifiConfig(uint8_t)':

support:975: error: 'UdpDisconnect' was not declared in this scope

 UdpDisconnect();

               ^

support:997: error: 'AddLog_P' was not declared in this scope

   AddLog_P(LOG_LEVEL_INFO, S_LOG_WIFI, PSTR(D_WCFG_6_SERIAL " " D_ACTIVE_FOR_3_MINUTES));

                                                                                        ^

support:1017: error: 'AddLog_P' was not declared in this scope

   AddLog_P(LOG_LEVEL_INFO, S_LOG_WIFI, PSTR(D_WCFG_2_WIFIMANAGER " " D_ACTIVE_FOR_3_MINUTES));

                                                                                             ^

support:1018: error: 'WifiManagerBegin' was not declared in this scope

   WifiManagerBegin();

                    ^

C:\Users\lomazan1\Documents\Arduino\sonoff\support.ino: In function 'void WifiBegin(uint8_t)':

support:1029: error: 'UdpDisconnect' was not declared in this scope

UdpDisconnect();

             ^

support:1062: error: 'AddLog' was not declared in this scope

AddLog(LOG_LEVEL_INFO);

                    ^

C:\Users\lomazan1\Documents\Arduino\sonoff\support.ino: In function 'void WifiCheckIp()':

support:1071: error: 'AddLog_P' was not declared in this scope

 AddLog_P((wifi_status != WL_CONNECTED) ? LOG_LEVEL_INFO : LOG_LEVEL_DEBUG_MORE, S_LOG_WIFI, PSTR(D_CONNECTED));

                                                                                                              ^

support:1085: error: 'AddLog_P' was not declared in this scope

     AddLog_P(LOG_LEVEL_INFO, S_LOG_WIFI, PSTR(D_CONNECT_FAILED_NO_IP_ADDRESS));

                                                                              ^

C:\Users\lomazan1\Documents\Arduino\sonoff\support.ino: In function 'void WifiCheck(uint8_t)':

support:1174: error: 'AddLog' was not declared in this scope

       AddLog(LOG_LEVEL_INFO);

                            ^

support:1186: error: 'AddLog_P' was not declared in this scope

     AddLog_P(LOG_LEVEL_DEBUG_MORE, S_LOG_WIFI, PSTR(D_CHECKING_CONNECTION));

                                                                           ^

support:1202: error: 'AddLog' was not declared in this scope

       AddLog(LOG_LEVEL_INFO);

                            ^

support:1207: error: 'StartWebserver' was not declared in this scope

       StartWebserver(Settings.webserver, WiFi.localIP());

                                                        ^

support:1214: error: 'StopWebserver' was not declared in this scope

       StopWebserver();

                     ^

support:1217: error: 'UdpConnect' was not declared in this scope

     if (Settings.flag2.emulation) { UdpConnect(); }

                                                ^

support:1229: error: 'UdpDisconnect' was not declared in this scope

     UdpDisconnect();

                   ^

C:\Users\lomazan1\Documents\Arduino\sonoff\support.ino: In function 'boolean MdnsDiscoverMqttServer()':

support:1301: error: 'AddLog' was not declared in this scope

AddLog(LOG_LEVEL_INFO);

                    ^

C:\Users\lomazan1\Documents\Arduino\sonoff\support.ino: In function 'String GetDateAndTime(byte)':

support:1590: error: 'BreakTime' was not declared in this scope

   BreakTime(utc_time - restart_time, tmpTime);

                                             ^

support:1592: error: 'BreakTime' was not declared in this scope

   BreakTime(uptime, tmpTime);

                            ^

support:1603: error: 'BreakTime' was not declared in this scope

     BreakTime(utc_time, tmpTime);

                                ^

C:\Users\lomazan1\Documents\Arduino\sonoff\support.ino: In function 'String GetUptime()':

support:1629: error: 'BreakTime' was not declared in this scope

 BreakTime(utc_time - restart_time, ut);

                                      ^

support:1631: error: 'BreakTime' was not declared in this scope

 BreakTime(uptime, ut);

                     ^

C:\Users\lomazan1\Documents\Arduino\sonoff\support.ino: In function 'uint32_t GetMinutesUptime()':

support:1649: error: 'BreakTime' was not declared in this scope

 BreakTime(utc_time - restart_time, ut);

                                      ^

support:1651: error: 'BreakTime' was not declared in this scope

 BreakTime(uptime, ut);

                     ^

C:\Users\lomazan1\Documents\Arduino\sonoff\support.ino: In function 'void RtcSecond()':

support:1841: error: 'AddLog' was not declared in this scope

   AddLog(LOG_LEVEL_DEBUG);

                         ^

C:\Users\lomazan1\Documents\Arduino\sonoff\support.ino: In function 'void Syslog()':

support:2039: error: 'AddLog' was not declared in this scope

 AddLog(LOG_LEVEL_INFO);

                      ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_01_mqtt.ino: In function 'void MqttPublishDirect(const char*, boolean)':

xdrv_01_mqtt:207: error: 'ShowFreeMem' was not declared in this scope

ShowFreeMem(PSTR("MqttPublishDirect"));

                                    ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_01_mqtt.ino: In function 'void MqttConnected()':

xdrv_01_mqtt:360: error: 'XdrvCall' was not declared in this scope

 XdrvCall(FUNC_MQTT_SUBSCRIBE);

                             ^

xdrv_01_mqtt:382: error: 'XdrvCall' was not declared in this scope

 XdrvCall(FUNC_MQTT_INIT);

                        ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_01_mqtt.ino: In function 'void MqttReconnect()':

xdrv_01_mqtt:440: error: 'UdpDisconnect' was not declared in this scope

UdpDisconnect();

             ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_02_webserver.ino: In function 'void StartWebserver(int, IPAddress)':

xdrv_02_webserver:369: error: 'HandleRoot' was not declared in this scope

   WebServer->on("/", HandleRoot);

                      ^

xdrv_02_webserver:370: error: 'HandleUpgradeFirmware' was not declared in this scope

   WebServer->on("/up", HandleUpgradeFirmware);

                        ^

xdrv_02_webserver:371: error: 'HandleUpgradeFirmwareStart' was not declared in this scope

   WebServer->on("/u1", HandleUpgradeFirmwareStart);  // OTA

                        ^

xdrv_02_webserver:372: error: 'HandleUploadDone' was not declared in this scope

   WebServer->on("/u2", HTTP_POST, HandleUploadDone, HandleUploadLoop);

                                   ^

xdrv_02_webserver:372: error: 'HandleUploadLoop' was not declared in this scope

   WebServer->on("/u2", HTTP_POST, HandleUploadDone, HandleUploadLoop);

                                                     ^

xdrv_02_webserver:373: error: 'HandleConsole' was not declared in this scope

   WebServer->on("/cs", HandleConsole);

                        ^

xdrv_02_webserver:374: error: 'HandleAjaxConsoleRefresh' was not declared in this scope

   WebServer->on("/ax", HandleAjaxConsoleRefresh);

                        ^

xdrv_02_webserver:375: error: 'HandleAjaxStatusRefresh' was not declared in this scope

   WebServer->on("/ay", HandleAjaxStatusRefresh);

                        ^

xdrv_02_webserver:376: error: 'HandlePreflightRequest' was not declared in this scope

   WebServer->on("/u2", HTTP_OPTIONS, HandlePreflightRequest);

                                      ^

xdrv_02_webserver:377: error: 'HandleHttpCommand' was not declared in this scope

   WebServer->on("/cm", HandleHttpCommand);

                        ^

xdrv_02_webserver:378: error: 'HandleRestart' was not declared in this scope

   WebServer->on("/rb", HandleRestart);

                        ^

xdrv_02_webserver:380: error: 'HandleConfiguration' was not declared in this scope

   WebServer->on("/cn", HandleConfiguration);

                        ^

xdrv_02_webserver:381: error: 'HandleModuleConfiguration' was not declared in this scope

   WebServer->on("/md", HandleModuleConfiguration);

                        ^

xdrv_02_webserver:383: error: 'HandleTimerConfiguration' was not declared in this scope

   WebServer->on("/tm", HandleTimerConfiguration);

                        ^

xdrv_02_webserver:385: error: 'HandleWifiConfigurationWithScan' was not declared in this scope

   WebServer->on("/w1", HandleWifiConfigurationWithScan);

                        ^

xdrv_02_webserver:386: error: 'HandleWifiConfiguration' was not declared in this scope

   WebServer->on("/w0", HandleWifiConfiguration);

                        ^

xdrv_02_webserver:388: error: 'HandleMqttConfiguration' was not declared in this scope

     WebServer->on("/mq", HandleMqttConfiguration);

                          ^

xdrv_02_webserver:390: error: 'HandleDomoticzConfiguration' was not declared in this scope

     WebServer->on("/dm", HandleDomoticzConfiguration);

                          ^

xdrv_02_webserver:396: error: 'HandleLoggingConfiguration' was not declared in this scope

   WebServer->on("/lg", HandleLoggingConfiguration);

                        ^

xdrv_02_webserver:397: error: 'HandleOtherConfiguration' was not declared in this scope

   WebServer->on("/co", HandleOtherConfiguration);

                        ^

xdrv_02_webserver:398: error: 'HandleBackupConfiguration' was not declared in this scope

   WebServer->on("/dl", HandleBackupConfiguration);

                        ^

xdrv_02_webserver:399: error: 'HandleSaveSettings' was not declared in this scope

   WebServer->on("/sv", HandleSaveSettings);

                        ^

xdrv_02_webserver:400: error: 'HandleRestoreConfiguration' was not declared in this scope

   WebServer->on("/rs", HandleRestoreConfiguration);

                        ^

xdrv_02_webserver:401: error: 'HandleResetConfiguration' was not declared in this scope

   WebServer->on("/rt", HandleResetConfiguration);

                        ^

xdrv_02_webserver:402: error: 'HandleInformation' was not declared in this scope

   WebServer->on("/in", HandleInformation);

                        ^

xdrv_02_webserver:405: error: 'HandleUpnpEvent' was not declared in this scope

     WebServer->on("/upnp/control/basicevent1", HTTP_POST, HandleUpnpEvent);

                                                           ^

xdrv_02_webserver:406: error: 'HandleUpnpService' was not declared in this scope

     WebServer->on("/eventservice.xml", HandleUpnpService);

                                        ^

xdrv_02_webserver:407: error: 'HandleUpnpMetaService' was not declared in this scope

     WebServer->on("/metainfoservice.xml", HandleUpnpMetaService);

                                           ^

xdrv_02_webserver:408: error: 'HandleUpnpSetupWemo' was not declared in this scope

     WebServer->on("/setup.xml", HandleUpnpSetupWemo);

                                 ^

xdrv_02_webserver:411: error: 'HandleUpnpSetupHue' was not declared in this scope

     WebServer->on("/description.xml", HandleUpnpSetupHue);

                                       ^

xdrv_02_webserver:416: error: 'HandleNotFound' was not declared in this scope

   WebServer->onNotFound(HandleNotFound);

                         ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_02_webserver.ino: In function 'void ShowPage(String&, bool)':

xdrv_02_webserver:497: error: 'ShowFreeMem' was not declared in this scope

ShowFreeMem(PSTR("ShowPage"));

                           ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_02_webserver.ino: In function 'void HandleRoot()':

xdrv_02_webserver:522: error: 'CaptivePortal' was not declared in this scope

if (CaptivePortal()) { return; } // If captive portal redirect instead of displaying the page.

                 ^

xdrv_02_webserver:537: error: 'HandleWifiConfiguration' was not declared in this scope

     HandleWifiConfiguration();

                             ^

xdrv_02_webserver:555: error: 'LightGetColorTemp' was not declared in this scope

       snprintf_P(mqtt_data, sizeof(mqtt_data), HTTP_MSG_SLIDER1, LightGetColorTemp());

                                                                                    ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_02_webserver.ino: In function 'void HandleAjaxStatusRefresh()':

xdrv_02_webserver:641: error: 'XsnsCall' was not declared in this scope

XsnsCall(FUNC_WEB_APPEND);

                       ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_02_webserver.ino: In function 'void HandleWifiConfigurationWithScan()':

xdrv_02_webserver:765: error: 'HandleWifi' was not declared in this scope

HandleWifi(true);

              ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_02_webserver.ino: In function 'void HandleWifiConfiguration()':

xdrv_02_webserver:770: error: 'HandleWifi' was not declared in this scope

HandleWifi(false);

               ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_02_webserver.ino: In function 'void HandleWifi(boolean)':

xdrv_02_webserver:785: error: 'UdpDisconnect' was not declared in this scope

 UdpDisconnect();

               ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_02_webserver.ino: In function 'void HandleSaveSettings()':

xdrv_02_webserver:1101: error: 'TimerSaveSettings' was not declared in this scope

 TimerSaveSettings();

                   ^

xdrv_02_webserver:1106: error: 'DomoticzSaveSettings' was not declared in this scope

 DomoticzSaveSettings();

                      ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_02_webserver.ino: In function 'void HandleUploadLoop()':

xdrv_02_webserver:1457: error: 'UdpDisconnect' was not declared in this scope

   UdpDisconnect();

                 ^

xdrv_02_webserver:1460: error: 'AriluxRfDisable' was not declared in this scope

   AriluxRfDisable();  // Prevent restart exception on Arilux Interrupt routine

                   ^

xdrv_02_webserver:1487: error: 'SnfBrUpdateInit' was not declared in this scope

       upload_error = SnfBrUpdateInit();

                                      ^

xdrv_02_webserver:1518: error: 'rf_glue_remnant_with_new_data_and_write' was not declared in this scope

     ssize_t result = rf_glue_remnant_with_new_data_and_write(efm8bb1_update, upload.buf, upload.currentSize);

                                                                                                            ^

xdrv_02_webserver:1526: error: 'rf_search_and_write' was not declared in this scope

   ssize_t result = rf_search_and_write(upload.buf, upload.currentSize);

                                                                      ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_02_webserver.ino: In function 'void HandleNotFound()':

xdrv_02_webserver:1780: error: 'CaptivePortal' was not declared in this scope

if (CaptivePortal()) { return; } // If captive portal redirect instead of displaying the error page.

                 ^

xdrv_02_webserver:1785: error: 'HandleHueApi' was not declared in this scope

 HandleHueApi(&path);

                   ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_02_webserver.ino: In function 'boolean CaptivePortal()':

xdrv_02_webserver:1802: error: 'ValidIpAddress' was not declared in this scope

if ((HTTP_MANAGER == webserver_state) && !ValidIpAddress(WebServer->hostHeader())) {

                                                                               ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_02_webserver.ino: In function 'boolean Xdrv02(byte)':

xdrv_02_webserver:2011: error: 'PollUdp' was not declared in this scope

   if (Settings.flag2.emulation) PollUdp();

                                         ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_03_energy.ino: In function 'void EnergyMarginCheck()':

xdrv_03_energy:753: error: 'EnergyMqttShow' was not declared in this scope

   EnergyMqttShow();

                  ^

xdrv_03_energy:768: error: 'EnergyMqttShow' was not declared in this scope

       EnergyMqttShow();

                      ^

xdrv_03_energy:795: error: 'EnergyMqttShow' was not declared in this scope

         EnergyMqttShow();

                        ^

xdrv_03_energy:816: error: 'EnergyMqttShow' was not declared in this scope

   EnergyMqttShow();

                  ^

xdrv_03_energy:822: error: 'EnergyMqttShow' was not declared in this scope

if (energy_power_delta) EnergyMqttShow();

                                      ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_03_energy.ino: In function 'void EnergyMqttShow()':

xdrv_03_energy:829: error: 'EnergyShow' was not declared in this scope

EnergyShow(1);

           ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_03_energy.ino: In function 'void EnergyShow(boolean)':

xdrv_03_energy:1156: error: 'DomoticzSensorPowerEnergy' was not declared in this scope

   DomoticzSensorPowerEnergy((uint16_t)energy_power, energy_total_chr);  // PowerUsage, EnergyToday

                                                                     ^

xdrv_03_energy:1157: error: 'DomoticzSensor' was not declared in this scope

   DomoticzSensor(DZ_VOLTAGE, energy_voltage_chr);  // Voltage

                                                ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_04_light.ino: In function 'void LightInit()':

xdrv_04_light:384: error: 'Ws2812Init' was not declared in this scope

 Ws2812Init();

            ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_04_light.ino: In function 'void LightState(uint8_t)':

xdrv_04_light:554: error: 'LightGetHsb' was not declared in this scope

 LightGetHsb(&hsb[0],&hsb[1],&hsb[2]);

                                    ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_04_light.ino: In function 'void LightPreparePower()':

xdrv_04_light:595: error: 'DomoticzUpdatePowerState' was not declared in this scope

DomoticzUpdatePowerState(light_device);

                                    ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_04_light.ino: In function 'void LightSetPower()':

xdrv_04_light:690: error: 'LightAnimate' was not declared in this scope

LightAnimate();

            ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_04_light.ino: In function 'void LightAnimate()':

xdrv_04_light:766: error: 'Ws2812ShowScheme' was not declared in this scope

       Ws2812ShowScheme(Settings.light_scheme -LS_MAX);

                                                     ^

xdrv_04_light:797: error: 'Ws2812SetColor' was not declared in this scope

     Ws2812SetColor(0, cur_col[0], cur_col[1], cur_col[2], cur_col[3]);

                                                                     ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_04_light.ino: In function 'boolean LightCommand()':

xdrv_04_light:1121: error: 'Ws2812ForceSuspend' was not declared in this scope

   Ws2812ForceSuspend();

                      ^

xdrv_04_light:1124: error: 'Ws2812SetColor' was not declared in this scope

       Ws2812SetColor(idx, light_entry_color[0], light_entry_color[1], light_entry_color[2], light_entry_color[3]);

                                                                                                                 ^

xdrv_04_light:1132: error: 'Ws2812ForceUpdate' was not declared in this scope

   Ws2812ForceUpdate();

                     ^

xdrv_04_light:1134: error: 'Ws2812GetColor' was not declared in this scope

 snprintf_P(mqtt_data, sizeof(mqtt_data), S_JSON_COMMAND_INDEX_SVALUE, command, XdrvMailbox.index, Ws2812GetColor(XdrvMailbox.index, scolor));

                                                                                                                                           ^

xdrv_04_light:1140: error: 'Ws2812Clear' was not declared in this scope

   Ws2812Clear();

               ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_05_irremote.ino: In function 'void IrReceiveCheck()':

xdrv_05_irremote:121: error: 'XdrvRulesProcess' was not declared in this scope

   XdrvRulesProcess();

                    ^

xdrv_05_irremote:124: error: 'DomoticzSensor' was not declared in this scope

   DomoticzSensor(DZ_COUNT, value);                      // Send data as Domoticz Counter value

                                 ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_05_irremote.ino: In function 'boolean IrSendCommand()':

xdrv_05_irremote:299: error: 'StaticJsonBuffer' was not declared in this scope

   StaticJsonBuffer<128> jsonBuf;

   ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_05_irremote.ino:299:7: note: suggested alternative:

In file included from C:\Users\lomazan1\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/StaticJsonDocument.hpp:8:0,

             from C:\Users\lomazan1\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:10,

             from C:\Users\lomazan1\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,

             from C:\Users\lomazan1\Documents\Arduino\sonoff\sonoff.ino:54:

C:\Users\lomazan1\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Memory/StaticJsonBuffer.hpp:110:7: note: 'ArduinoJson::Internals::StaticJsonBuffer'

class StaticJsonBuffer : public Internals::StaticJsonBufferBase {

   ^

xdrv_05_irremote:299: error: 'jsonBuf' was not declared in this scope

   StaticJsonBuffer<128> jsonBuf;

                         ^

xdrv_05_irremote:301: error: 'class ArduinoJson::JsonObject' has no member named 'success'

   if (!root.success()) {

             ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_06_snfbridge.ino: In function 'ssize_t rf_glue_remnant_with_new_data_and_write(const uint8_t, uint8_t, size_t)':

xdrv_06_snfbridge:105: error: 'rf_decode_and_write' was not declared in this scope

result = rf_decode_and_write(glue_buf, glue_record_sz);

                                                    ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_06_snfbridge.ino: In function 'void SonoffBridgeReceivedRaw()':

xdrv_06_snfbridge:236: error: 'XdrvRulesProcess' was not declared in this scope

XdrvRulesProcess();

                ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_06_snfbridge.ino: In function 'void SonoffBridgeReceived()':

xdrv_06_snfbridge:307: error: 'XdrvRulesProcess' was not declared in this scope

     XdrvRulesProcess();

                      ^

xdrv_06_snfbridge:309: error: 'DomoticzSensor' was not declared in this scope

     DomoticzSensor(DZ_COUNT, received_id);  // Send rid as Domoticz Counter value

                                         ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_07_domoticz.ino: In function 'boolean DomoticzMqttData()':

xdrv_07_domoticz:168: error: 'StaticJsonBuffer' was not declared in this scope

 StaticJsonBuffer<400> jsonBuf;

 ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_07_domoticz.ino:168:5: note: suggested alternative:

In file included from C:\Users\lomazan1\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/StaticJsonDocument.hpp:8:0,

             from C:\Users\lomazan1\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:10,

             from C:\Users\lomazan1\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,

             from C:\Users\lomazan1\Documents\Arduino\sonoff\sonoff.ino:54:

C:\Users\lomazan1\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Memory/StaticJsonBuffer.hpp:110:7: note: 'ArduinoJson::Internals::StaticJsonBuffer'

class StaticJsonBuffer : public Internals::StaticJsonBufferBase {

   ^

xdrv_07_domoticz:168: error: 'jsonBuf' was not declared in this scope

 StaticJsonBuffer<400> jsonBuf;

                       ^

xdrv_07_domoticz:170: error: 'class ArduinoJson::JsonObject' has no member named 'success'

 if (!domoticz.success()) {

               ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_09_timers.ino: In function 'void TimerEverySecond()':

xdrv_09_timers:290: error: 'XdrvRulesProcess' was not declared in this scope

             XdrvRulesProcess();

                              ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_09_timers.ino: In function 'boolean TimerCommand()':

xdrv_09_timers:364: error: 'StaticJsonBuffer' was not declared in this scope

       StaticJsonBuffer<256> jsonBuffer;

       ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_09_timers.ino:364:11: note: suggested alternative:

In file included from C:\Users\lomazan1\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/StaticJsonDocument.hpp:8:0,

             from C:\Users\lomazan1\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:10,

             from C:\Users\lomazan1\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,

             from C:\Users\lomazan1\Documents\Arduino\sonoff\sonoff.ino:54:

C:\Users\lomazan1\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Memory/StaticJsonBuffer.hpp:110:7: note: 'ArduinoJson::Internals::StaticJsonBuffer'

class StaticJsonBuffer : public Internals::StaticJsonBufferBase {

   ^

xdrv_09_timers:364: error: 'jsonBuffer' was not declared in this scope

       StaticJsonBuffer<256> jsonBuffer;

                             ^

xdrv_09_timers:366: error: 'class ArduinoJson::JsonObject' has no member named 'success'

       if (!root.success()) {

                 ^

xdrv_09_timers:373: error: 'class ArduinoJson::Internals::JsonObjectSubscript<char*>' has no member named 'success'

         if (root[UpperCase_P(parm_uc, PSTR(D_JSON_TIMER_ARM))].success()) {

                                                                ^

xdrv_09_timers:377: error: 'class ArduinoJson::Internals::JsonObjectSubscript<char*>' has no member named 'success'

         if (root[UpperCase_P(parm_uc, PSTR(D_JSON_TIMER_MODE))].success()) {

                                                                 ^

xdrv_09_timers:381: error: 'class ArduinoJson::Internals::JsonObjectSubscript<char*>' has no member named 'success'

         if (root[UpperCase_P(parm_uc, PSTR(D_JSON_TIMER_TIME))].success()) {

                                                                 ^

xdrv_09_timers:408: error: 'class ArduinoJson::Internals::JsonObjectSubscript<char*>' has no member named 'success'

         if (root[UpperCase_P(parm_uc, PSTR(D_JSON_TIMER_WINDOW))].success()) {

                                                                   ^

xdrv_09_timers:412: error: 'class ArduinoJson::Internals::JsonObjectSubscript<char*>' has no member named 'success'

         if (root[UpperCase_P(parm_uc, PSTR(D_JSON_TIMER_DAYS))].success()) {

                                                                 ^

xdrv_09_timers:425: error: 'class ArduinoJson::Internals::JsonObjectSubscript<char*>' has no member named 'success'

         if (root[UpperCase_P(parm_uc, PSTR(D_JSON_TIMER_REPEAT))].success()) {

                                                                   ^

xdrv_09_timers:428: error: 'class ArduinoJson::Internals::JsonObjectSubscript<char*>' has no member named 'success'

         if (root[UpperCase_P(parm_uc, PSTR(D_JSON_TIMER_OUTPUT))].success()) {

                                                                   ^

xdrv_09_timers:432: error: 'class ArduinoJson::Internals::JsonObjectSubscript<char*>' has no member named 'success'

         if (root[UpperCase_P(parm_uc, PSTR(D_JSON_TIMER_ACTION))].success()) {

                                                                   ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_10_rules.ino: In function 'bool RulesRuleMatch(byte, String&, String&)':

xdrv_10_rules:220: error: 'StaticJsonBuffer' was not declared in this scope

StaticJsonBuffer<1024> jsonBuf;

^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_10_rules.ino:220:3: note: suggested alternative:

In file included from C:\Users\lomazan1\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/StaticJsonDocument.hpp:8:0,

             from C:\Users\lomazan1\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:10,

             from C:\Users\lomazan1\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,

             from C:\Users\lomazan1\Documents\Arduino\sonoff\sonoff.ino:54:

C:\Users\lomazan1\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Memory/StaticJsonBuffer.hpp:110:7: note: 'ArduinoJson::Internals::StaticJsonBuffer'

class StaticJsonBuffer : public Internals::StaticJsonBufferBase {

   ^

xdrv_10_rules:220: error: 'jsonBuf' was not declared in this scope

StaticJsonBuffer<1024> jsonBuf;

                      ^

xdrv_10_rules:222: error: 'class ArduinoJson::JsonObject' has no member named 'success'

if (!root.success()) { return false; } // No valid JSON data

         ^

xdrv_10_rules:231: error: 'ArduinoJson::Internals::enable_if<true, ArduinoJson::Internals::JsonObjectSubscript<const String&> >::type' has no member named 'success'

if (!root[rule_task][rule_name].success()) { return false; }

                               ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_10_rules.ino: In function 'bool RulesProcessEvent(char*)':

xdrv_10_rules:355: error: 'ShowFreeMem' was not declared in this scope

ShowFreeMem(PSTR("RulesProcessEvent"));

                                    ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_10_rules.ino: In function 'void RulesEvery50ms()':

xdrv_10_rules:450: error: 'XsnsNextCall' was not declared in this scope

     XsnsNextCall(FUNC_JSON_APPEND);  // ,"INA219":{"Voltage":4.494,"Current":0.020,"Power":0.089}

                                  ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_10_rules.ino: In function 'boolean RulesCommand()':

xdrv_10_rules:585: error: 'subStr' was not declared in this scope

     double valueIN = CharToDouble(subStr(sub_string, XdrvMailbox.data, ",", 1));

                                                                              ^

xdrv_10_rules:590: error: 'map_double' was not declared in this scope

     double value = map_double(valueIN, fromLow, fromHigh, toLow, toHigh);

                                                                        ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_interface.ino: In function 'boolean XdrvCommand(uint8_t, char, uint16_t, char, uint16_t, int16_t, uint16_t)':

xdrv_interface:153: error: 'XdrvCall' was not declared in this scope

return XdrvCall(FUNC_COMMAND);

                           ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_interface.ino: In function 'void XdrvSetPower(power_t)':

xdrv_interface:161: error: 'XdrvCall' was not declared in this scope

XdrvCall(FUNC_SET_POWER);

                      ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_interface.ino: In function 'boolean XdrvMqttData(char, uint16_t, char, uint16_t)':

xdrv_interface:171: error: 'XdrvCall' was not declared in this scope

return XdrvCall(FUNC_MQTT_DATA);

                             ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_interface.ino: In function 'boolean XdrvRulesProcess()':

xdrv_interface:176: error: 'XdrvCall' was not declared in this scope

return XdrvCall(FUNC_RULES_PROCESS);

                                 ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xdrv_interface.ino: In function 'void ShowFreeMem(const char*)':

xdrv_interface:184: error: 'XdrvCall' was not declared in this scope

XdrvCall(FUNC_FREE_MEM);

                     ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xplg_wemohue.ino: In function 'void HueLights(String*)':

xplg_wemohue:652: error: 'StaticJsonBuffer' was not declared in this scope

   StaticJsonBuffer<400> jsonBuffer;

   ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xplg_wemohue.ino:652:7: note: suggested alternative:

In file included from C:\Users\lomazan1\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/StaticJsonDocument.hpp:8:0,

             from C:\Users\lomazan1\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:10,

             from C:\Users\lomazan1\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,

             from C:\Users\lomazan1\Documents\Arduino\sonoff\sonoff.ino:54:

C:\Users\lomazan1\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Memory/StaticJsonBuffer.hpp:110:7: note: 'ArduinoJson::Internals::StaticJsonBuffer'

class StaticJsonBuffer : public Internals::StaticJsonBufferBase {

   ^

xplg_wemohue:652: error: 'jsonBuffer' was not declared in this scope

   StaticJsonBuffer<400> jsonBuffer;

                         ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xplg_ws2812.ino: In function 'void Ws2812Init()':

xplg_ws2812:337: error: 'Ws2812Clear' was not declared in this scope

Ws2812Clear();

           ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xsns_07_sht1x.ino: In function 'boolean ShtReset()':

xsns_07_sht1x:54: error: 'ShtSendCommand' was not declared in this scope

boolean success = ShtSendCommand(SHT1X_CMD_SOFT_RESET);

                                                    ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xsns_22_sr04.ino: In function 'boolean Sr04Read(uint16_t*)':

xsns_22_sr04:62: error: 'Sr04GetSamples' was not declared in this scope

duration = Sr04GetSamples(9, 250);

                               ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xsns_23_sdm120.ino: In function 'void SDM120_ModbusSend(uint8_t, uint16_t, uint16_t)':

xsns_23_sdm120:60: error: 'SDM120_calculateCRC' was not declared in this scope

uint16_t crc = SDM120_calculateCRC(frame, 6); // calculate out crc only from first 6 bytes

                                          ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xsns_23_sdm120.ino: In function 'uint8_t SDM120_ModbusReceive(float*)':

xsns_23_sdm120:89: error: 'SDM120_calculateCRC' was not declared in this scope

   if((SDM120_calculateCRC(buffer, 7)) == ((buffer[8] << 8) | buffer[7])) {  //calculate crc from first 7 bytes and compare with received crc (bytes 7 & 8)

                                    ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xsns_25_sdm630.ino: In function 'void SDM630_ModbusSend(uint8_t, uint16_t, uint16_t)':

xsns_25_sdm630:58: error: 'SDM630_calculateCRC' was not declared in this scope

uint16_t crc = SDM630_calculateCRC(frame, 6); // calculate out crc only from first 6 bytes

                                          ^

C:\Users\lomazan1\Documents\Arduino\sonoff\xsns_25_sdm630.ino: In function 'uint8_t SDM630_ModbusReceive(float*)':

xsns_25_sdm630:87: error: 'SDM630_calculateCRC' was not declared in this scope

   if((SDM630_calculateCRC(buffer, 7)) == ((buffer[8] << 8) | buffer[7])) {  //calculate crc from first 7 bytes and compare with received crc (bytes 7 & 8)

                                    ^

exit status 1 'ShowSource' was not declared in this scope

ascillato commented 6 years ago

Hi

Duplicated issue.

See #3238

Thanks

pumino79 commented 6 years ago

Hi Ascillato, the other issue (#3238) was closed without solution, if you close this how can I solve my problem?

ascillato2 commented 6 years ago

The other issue was closed by the author (@turner-prize) with the comment (Upgraded to the latest Arduino IDE and it's working now.)

Please, try that. If that did not work for you, just click in the button below (REOPEN ISSUE) and tell us your outputs.

pumino79 commented 6 years ago

Hi Acillato, If you see the beginning of my issue i wrote Arduino ide 1.8.5 that is the last version of Arduino & I have also the last version of tasmota 6.1.1. This is why I have open this issue again

ascillato2 commented 6 years ago

Have you tried uninstall and install arduino again?

pumino79 commented 6 years ago

yes two times

ascillato commented 6 years ago

Are you copying ALL the files?

ascillato commented 6 years ago

Are you using windows 10?

If yes, try Arduino 1.8.2

turner-prize commented 6 years ago

Was the previous version of the Arduino IDE removed when you upgraded? Need to make sure you're not still opening the file with the old version if it wasn't.

pumino79 commented 6 years ago

befor I used the 5.12

pumino79 commented 6 years ago

Are you using windows 10? Yes windows 10

If yes, try Arduino 1.8.2, -> Ok I'll try

pumino79 commented 6 years ago

I have installed the 1.8.2 ide and installed the Arduinojason 1.5.3 instead of the 6.beta. Now it works. Thanks