-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
net_info module - ping function #2854
Conversation
Regardless of whether this will ever be merged...the CI build failed. Not sure if you have access to this https://travis-ci.org/nodemcu/nodemcu-firmware/jobs/563711700
That is due to #2838. |
I will fix it when #2853 is solved. I can't compile now :-( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution. Before this can be merged, I would like to see several changes to the module, not the least of which is that I would like to be able to have multiple ping
requests going at once (as LwIP supports) and see proper C object life-cycle management.
58b19c0
to
c520bef
Compare
Ok, so at least it compiles now. Nathan @nwf thanks for all suggestions. Progressively I will try to implement them. It will be pending for some while as I'm on another project now. Stay tuned. |
79b0b34
to
cd8135f
Compare
a5f980e
to
04cff01
Compare
Thank you for your continued work on this module. 👍 |
03b3b2b
to
9395449
Compare
@marcelstoer my thoughts entirely. |
Ok, so now we have very clean implementation of the |
That's too much attribution, IMO. We wouldn't be here without Lukáš doing the heavy lifting. Doing this exercise has really help me clarify some of my own thoughts. Thanks for your work. |
@nwf I think that this code in good to go now. My only Q is whether this one function merits its own module or should be just move it into |
I'd like it to be merged with |
That has come up here and in the original issue #1555 a couple of times. I personally favor the latter with no extra option. I don't see why this should be gated and other stuff not. P.S. any extra y/n option will make a function unavailable to those who don't compile stuff themselves |
@marcelstoer Well, merging with |
@vsky279 can you drop the net_info module, ditto the separate doc file and modules define. Add your code and doc to net and the enabled I'd like to merge this before I do my next tranche of fixes. Thanks. |
ping is a part of I was thinking about implementing a callback to the |
0e706d4
to
10c226f
Compare
I dislike the use of the name ETA: Another callback at the end seems like a perfectly reasonable addition, yes. |
Changed to NET_PING_ENABLE macro
All implemented and tested. Should be ready to be merged. |
`net_info.md` no longer exists
* Net_info module exposing ping function initial commit * Ping as a part of net module * Sent callback implemented * Add NET_PING_ENABLE macro Authored-by: vsky <[email protected]> with support from TerryE
* Net_info module exposing ping function initial commit * Ping as a part of net module * Sent callback implemented * Add NET_PING_ENABLE macro Authored-by: vsky <[email protected]> with support from TerryE
Fixes #1555.
dev
branch rather than formaster
.docs/*
.This PR is created based on initial module by @wolfgangr with only few fixes. It seems to be pity to drop the work that has been done by @wolfgangr.
This version is working reliably in one of my applications so I think it is eligible to be merged into
dev
version.Once reviewed I will squash these commits into one.
Actually can I do it just for the PR and have them separated in my branch?