I'm trying to port an application from ESP8266 to ESP32.
It uses a ping library from https://github.com/dancol90/ESP8266Ping.
The class definition looks like:
Code: Select all
class PingClass {
public:
PingClass();
bool ping(IPAddress dest, byte count = 5);
bool ping(const char* host, byte count = 5);
int averageTime();
protected:
static void _ping_sent_cb(void *opt, void *pdata);
static void _ping_recv_cb(void *opt, void *pdata);
IPAddress _dest;
ping_option _options;
static byte _expected_count, _errors, _success;
static int _avg_time;
};
extern PingClass Ping;
#endif
Code: Select all
..../Ping.h:50:5: error: 'ping_option' does not name a type
ping_option _options;
^
I tried to search around, but couldn't find it's definition in both AVR and ESP cores.
Any ideas would be highly appreciated.
Thanks
Uhrheber