bruhautomation / ESP-MQTT-JSON-Multisensor

(OBSOLETE) ESP MQTT JSON Multisensor for Home Assistant. Supported sensors include the TEMT6000 light, AM312 PIR, DHT22 temperature/humidity sensors. RGB led supports flash, fade, and transition. Over-The-Air (OTA) uploading, too!
https://youtu.be/jpjfVc-9IrQ
Apache License 2.0
340 stars 152 forks source link

'setup_wifi' was not declared in this scope #12

Closed DJSGXII closed 7 years ago

DJSGXII commented 7 years ago

I get the following error saying: exit status 1 'setup_wifi' was not declared in this scope

Arduino: 1.6.7 (Windows 7), Board:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"

C:\Users\User\Desktop\ESP-MQTT-JSON-Multisensor-master\ESP-MQTT-JSON-Multisensor-master\bruh_mqtt_multisensor_github\bruh_mqtt_multisensor_github.ino: In function 'void setup()':

bruh_mqtt_multisensor_github:164: error: 'setup_wifi' was not declared in this scope

setup_wifi();

          ^

bruh_mqtt_multisensor_github:167: error: 'callback' was not declared in this scope

client.setCallback(callback);

                  ^

C:\Users\User\Desktop\ESP-MQTT-JSON-Multisensor-master\ESP-MQTT-JSON-Multisensor-master\bruh_mqtt_multisensor_github\bruh_mqtt_multisensor_github.ino: In function 'void callback(char, byte, unsigned int)':

bruh_mqtt_multisensor_github:234: error: 'processJson' was not declared in this scope

if (!processJson(message)) {

                       ^

bruh_mqtt_multisensor_github:253: error: 'sendState' was not declared in this scope

sendState();

         ^

C:\Users\User\Desktop\ESP-MQTT-JSON-Multisensor-master\ESP-MQTT-JSON-Multisensor-master\bruh_mqtt_multisensor_github\bruh_mqtt_multisensor_github.ino: In function 'void loop()':

bruh_mqtt_multisensor_github:497: error: 'calculateStep' was not declared in this scope

   stepR = calculateStep(redVal, realRed);

                                        ^

bruh_mqtt_multisensor_github:512: error: 'calculateVal' was not declared in this scope

     redVal = calculateVal(stepR, redVal, loopCount);

                                                   ^

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

DJSGXII commented 7 years ago

Figured out I was running an outdated version of the Arduino IDE. Updating to version 1.8.2 fixed the problem :)