Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PingESP utility issue #7

Open
Pronoe opened this issue Dec 23, 2021 · 7 comments
Open

PingESP utility issue #7

Pronoe opened this issue Dec 23, 2021 · 7 comments
Labels
keep don't stale this issue

Comments

@Pronoe
Copy link
Contributor

Pronoe commented Dec 23, 2021

Hello,
Thank you for your bootstrapper library.
I am using it to build my project of pool filtering pump management based on an ESP32.
I use also some pieces of code from your Smartostat.
I found an issue with PingESP utility because it does not seem to be ESP32 ready.
After including ESP32 definition, the compiler goes on but I still have an issue with the "extern "C" {#include <ping.h>}" declaration.
As I understand, this call for a pre-compiled ping C code.
Thank you for your help.
Patrick

@Pronoe
Copy link
Contributor Author

Pronoe commented Dec 23, 2021

Hello,
I have solved the issue by installing the library ESP32Ping from https://github.com/marian-craciunescu/ESP32Ping and including the corresponding header in PingESP.h.
Its now compiling but the code is too big for the target (1.5 Mo for 1.3 Mo max) despite the operational code is limited to basic functions up to now.

@sblantipodi
Copy link
Owner

Hi,
thank you for opening the issue Pronoe.

ESP8266 have built in functions to ping other devices while ESP32 don't have this features builtin.
That utility in particular works for ESP8266 only, if you want to use it on ESP32 you need an external lib.

There is no other way on ESP32 unfortunantly.
Feel free to reopen the issue if you need it :)

@Pronoe
Copy link
Contributor Author

Pronoe commented Dec 31, 2021 via email

@Pronoe
Copy link
Contributor Author

Pronoe commented Mar 8, 2022

After migration of my application to Bootstrapper 1.12.6 release, I have encountered some issues with PingESP because I had merged some modifications that I made locally for the ESP32 and your last modifications for the ESP8266. As I had also installed ESP8266 library for checking, I think the compiler might have merged some specific code for the ESP8266 and code for the ESP32.
Since then, I got in trouble with the WiFi link and my gateway was putting the link down for all the connected device.
It seems that I have finally solve this issue by adding a PingClass pingESP declaration in my own header file and keeping

#elif defined(ESP32) 
    #include <WiFi.h>
    #include <ESP32Ping.h>
    #include <ping.h>

in the PingESP.h header file.
I will propose later on a pull request for this file and to the README.md file to provide additional guidelines for ESP32 users.

@sblantipodi
Copy link
Owner

thank you!!! I'll reopen it until your pull request...

@github-actions
Copy link

github-actions bot commented Apr 9, 2022

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the Stale label May 11, 2022
@sblantipodi sblantipodi reopened this May 16, 2022
@sblantipodi sblantipodi reopened this May 23, 2022
@sblantipodi sblantipodi reopened this Jun 2, 2022
@sblantipodi sblantipodi added keep don't stale this issue and removed Stale labels Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keep don't stale this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants