Open hexagon1911 opened 7 years ago
Sorry hadn't had time to look into it until now! I think I fixed it for now, try it again with the latest source.
I wasn't really able to get it running stable on my ESP8266 boards again. I think there are huge differences in terms of performance depending on your surrounding WiFi traffic and the ESP8266 chip/board you're using. So keep that in mind please :)
I can't seem to get this working on the ESP8266, I keep getting this error: "/Documents/Arduino/libraries/ArduinoPcap-master/src/PCAP.h:31:16: error: 'SdFat' has not been declared bool openFile(SdFat &SD); "
I think it has to do with the PCAP.H including SdFat in the If statements:
#ifndef PCAP_h
#define PCAP_h
#include <Arduino.h>
#include "SPI.h"
#if defined(ESP32)
#include "FS.h"
#include "SD.h"
#else
#include <SPI.h>
#include <SdFat.h>
#endif
Are these additional libraries we need to install ?
Try it with esp8266 community version 2.3.0 it worked for me ..
It only works with SdFat v2.0.1 since SdFat changed a lot and the project isn't maintained for 3 years. Considering it's an open-source project, someone might update the code to work with the latest SdFat library but, who that will be right?