ESP8266-Wardriving icon indicating copy to clipboard operation
ESP8266-Wardriving copied to clipboard

'D4' was not declared in this scope

Open Lup1n-3 opened this issue 1 year ago • 1 comments

Hi, I'm having a problem compiling the code.

ESP8266-Wardriving:24:19: error: 'D4' was not declared in this scope 24 | SoftwareSerial ss(D4, D3); // RX, TX | ^~ ESP8266-Wardriving:24:23: error: 'D3' was not declared in this scope 24 | SoftwareSerial ss(D4, D3); // RX, TX | ^~ C:\Users\win 1o\Desktop\ESP8266-Wardriving-master\src\ESP8266-Wardriving\ESP8266-Wardriving.ino: In function 'void setup()': ESP8266-Wardriving:10:20: error: 'D8' was not declared in this scope; did you mean 's8'? 10 | #define SD_CS D8 | ^~ C:\Users\win 1o\Desktop\ESP8266-Wardriving-master\src\ESP8266-Wardriving\ESP8266-Wardriving.ino:40:17: note: in expansion of macro 'SD_CS' 40 | if (!SD.begin(SD_CS)) { | ^~~~~ Se encontraron varias bibliotecas para "SD.h" Usado: C:\Users\win 1o\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD No usado: C:\Program Files (x86)\Arduino\libraries\SD exit status 1 'D4' was not declared in this scope`

Lup1n-3 avatar Jan 06 '23 15:01 Lup1n-3

Make sure you have the following included. I also found that I had to revert back to an older ESP8266 firmware to resolve some issuess.

#include <Adafruit_SSD1306.h> #include <Adafruit_GFX.h> #include <ESP8266WiFi.h> #include <SPI.h> #include <SD.h> #include <SoftwareSerial.h> #include <TinyGPS++.h> #include <TimeLib.h>

chopper-2656 avatar Mar 04 '23 16:03 chopper-2656