Git Product home page Git Product logo

Comments (8)

dancol90 avatar dancol90 commented on August 16, 2024

Hi!

Update to the last commit and define ENABLE_DEBUG_PING before including the library in your sketch, like this:

#define ENABLE_DEBUG_PING
#include <ESP8266Ping.h>

from esp8266ping.

carlosrodriguesIT avatar carlosrodriguesIT commented on August 16, 2024

OK, but how to call in the main file? And display the values?

from esp8266ping.

dancol90 avatar dancol90 commented on August 16, 2024

It's a debug statement, so it will be called during the execution of Ping.ping(). When enabled, the informations will be printed on Serial.

At the moment, there's no other way to access ping_resp structure from outside the library. The only information available is the average response time, using Ping.averageTime().

from esp8266ping.

carlosrodriguesIT avatar carlosrodriguesIT commented on August 16, 2024

Yes I see, maybe construct other class like PingValuesClass PingValues; to show the other values, what do you think?

from esp8266ping.

dancol90 avatar dancol90 commented on August 16, 2024

I will think about implementing a user-defined callback that gets called on every response, that will pass a reference to the ping_resp structure.

from esp8266ping.

carlosrodriguesIT avatar carlosrodriguesIT commented on August 16, 2024

Yes , the people would love , would be much more complete!

I will wait for this implementation, thanks a lot for your time (Y)

from esp8266ping.

dancol90 avatar dancol90 commented on August 16, 2024

I've realised that the define method above does not work, I'm sorry!
In #4 I've suggested a workaround to make the debug prints works.

from esp8266ping.

dancol90 avatar dancol90 commented on August 16, 2024

Debug info print issue fixed by c5f0be4

from esp8266ping.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.