So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By Lipu
#92267
Lipu wrote:
btidey wrote:When seeking help I would suggest 2 things.

Tell us what error you get.

Try compiling a minimal sketch with no external libraries or dependencies to ensure you have the IDE set up correctly.

The multiple definitions of a function called BLYNK_WRITE look strange but I don't use BLYNK

Edit. Having looked a bit further these appear to be macros, but the main comment still applies. You need to say what error you get.



Sorry bro, i am new in this field, i saw a video in youtube then trying to make this project. I dont know about coding. I am sending error report...



Error report
Arduino: 1.8.15 (Windows Store 1.8.49.0) (Windows 10), Board: "NodeMCU 0.9 (ESP-12 Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 115200"











D:\New folder\New folder\Complete-Home-Automation-with-Realtime-Feedback-main\NodeMCU ESP8266\Code_NodeMCU_ESP8266\Code_NodeMCU_ESP8266.ino: In function 'void BlynkWidgetWrite0(BlynkReq&, const BlynkParam&)':
Code_NodeMCU_ESP8266:76:5: error: 'speed0' was not declared in this scope; did you mean 'Speed1'?
76 | speed0();
| ^~~~~~
| Speed1
Code_NodeMCU_ESP8266:80:5: error: 'speed1' was not declared in this scope; did you mean 'Speed1'?
80 | speed1();
| ^~~~~~
| Speed1
Code_NodeMCU_ESP8266:84:5: error: 'speed2' was not declared in this scope; did you mean 'Speed2'?
84 | speed2();
| ^~~~~~
| Speed2
Code_NodeMCU_ESP8266:88:5: error: 'speed3' was not declared in this scope; did you mean 'Speed1'?
88 | speed3();
| ^~~~~~
| Speed1
Code_NodeMCU_ESP8266:92:5: error: 'speed4' was not declared in this scope; did you mean 'Speed4'?
92 | speed4();
| ^~~~~~
| Speed4
D:\New folder\New folder\Complete-Home-Automation-with-Realtime-Feedback-main\NodeMCU ESP8266\Code_NodeMCU_ESP8266\Code_NodeMCU_ESP8266.ino: In function 'void setup()':
Code_NodeMCU_ESP8266:130:28: error: 'checkBlynk' was not declared in this scope
130 | timer.setInterval(3000L, checkBlynk); // check if connected to Blynk server every 3 seconds
| ^~~~~~~~~~
D:\New folder\New folder\Complete-Home-Automation-with-Realtime-Feedback-main\NodeMCU ESP8266\Code_NodeMCU_ESP8266\Code_NodeMCU_ESP8266.ino: In function 'void with_internet()':
Code_NodeMCU_ESP8266:164:5: error: 'speed1' was not declared in this scope; did you mean 'Speed1'?
164 | speed1();
| ^~~~~~
| Speed1
Code_NodeMCU_ESP8266:176:5: error: 'speed2' was not declared in this scope; did you mean 'Speed2'?
176 | speed2();
| ^~~~~~
| Speed2
Code_NodeMCU_ESP8266:187:5: error: 'speed3' was not declared in this scope; did you mean 'Speed1'?
187 | speed3();
| ^~~~~~
| Speed1
Code_NodeMCU_ESP8266:197:5: error: 'speed4' was not declared in this scope; did you mean 'Speed4'?
197 | speed4();
| ^~~~~~
| Speed4
D:\New folder\New folder\Complete-Home-Automation-with-Realtime-Feedback-main\NodeMCU ESP8266\Code_NodeMCU_ESP8266\Code_NodeMCU_ESP8266.ino: In function 'void without_internet()':
Code_NodeMCU_ESP8266:266:5: error: 'speed1' was not declared in this scope; did you mean 'Speed1'?
266 | speed1();
| ^~~~~~
| Speed1
Code_NodeMCU_ESP8266:278:5: error: 'speed2' was not declared in this scope; did you mean 'Speed2'?
278 | speed2();
| ^~~~~~
| Speed2
Code_NodeMCU_ESP8266:289:5: error: 'speed3' was not declared in this scope; did you mean 'Speed1'?
289 | speed3();
| ^~~~~~
| Speed1
Code_NodeMCU_ESP8266:299:5: error: 'speed4' was not declared in this scope; did you mean 'Speed4'?
299 | speed4();
| ^~~~~~
| Speed4
Code_NodeMCU_ESP8266:309:5: error: 'speed0' was not declared in this scope; did you mean 'Speed1'?
309 | speed0();
| ^~~~~~
| Speed1
D:\New folder\New folder\Complete-Home-Automation-with-Realtime-Feedback-main\NodeMCU ESP8266\Code_NodeMCU_ESP8266\Code_NodeMCU_ESP8266.ino: At global scope:
Code_NodeMCU_ESP8266:322:15: error: expected constructor, destructor, or type conversion before '(' token
322 | digitalWrite(R5, !digitalRead(S5));
| ^
Code_NodeMCU_ESP8266:323:15: error: expected constructor, destructor, or type conversion before '(' token
323 | digitalWrite(R6, !digitalRead(S6));
| ^
Code_NodeMCU_ESP8266:324:1: error: expected declaration before '}' token
324 | }
| ^
Multiple libraries were found for "WiFiClient.h"
Used: C:\Users\88017\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\libraries\ESP8266WiFi
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.49.0_x86__mdqgnx93n4wtt\libraries\WiFi
Multiple libraries were found for "BlynkSimpleEsp8266.h"
Used: C:\Users\88017\Documents\Arduino\libraries\Blynk_For_Chinese
Not used: C:\Users\88017\Documents\Arduino\libraries\Blynk
exit status 1
'speed0' was not declared in this scope; did you mean 'Speed1'?


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

User avatar
By AcmeUK
#92271 C++ is case sensitive
Code_NodeMCU_ESP8266:80:5: error: 'speed1' was not declared in this scope; did you mean 'Speed1'?

This line from your error report tells you it could not find speed1 but found Speed1!
There are multiple such error reports.
If you are new to programming try something less ambitious.