nkolban / esp32-snippets

Sample ESP32 snippets and code fragments
https://leanpub.com/kolban-ESP32
Apache License 2.0
2.36k stars 710 forks source link

compile problem #906

Open marrog86 opened 5 years ago

marrog86 commented 5 years ago

Hello,

Wanted to try out your work, but i had problems compiling it. idf.py --version ESP-IDF v4.1-dev-281-g96b96ae24

cpp_utils/Socket.cpp:63:23: error: '::lwip_accept_r' has not been declared int clientSockFD = ::lwip_accept_r(m_sock, (struct sockaddr*) &client_addr, &sin_size);

and

WiFi.cpp:221:32: error: conversion from 'const ip_addr_t' {aka 'const ip_addr'} to non-scalar type 'ip_addr_t' {aka 'ip_addr'} requested ip_addr_t ip = ::dns_getserver(0);

any idea what i could try?

chegewara commented 5 years ago

Most likely some API changed since esp-idf v3.x and you will have to change this library if you want to use it with esp-idf v4.x.

stephenrjohnson commented 4 years ago

Is there any alternative to this for the esp32, as the snippets repo is becoming abandoned ware

chegewara commented 4 years ago

You can fork repo and apply required changes in code and eventually create PR with new branch. Remember that esp-idf v3.3 is still last stable release.