Non-blocking ICMP ping plugin

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
nuclearcat
New user
Posts: 3
Joined: 16 Aug 2019, 18:21

Non-blocking ICMP ping plugin

#1 Post by nuclearcat » 16 Aug 2019, 18:30

Hi,

I just created non-blocking ICMP plugin that allows multiple instances.
It is very handy in following scenarios:
1)Watchdog for Buggy WIFI stack or AP, sometimes AP or device wifi stack itself partially crash, shows themself as associated, but IP stack is dead and device cannot reach anything outside.
2)Watchdog for various IP-enabled devices. ESP Easy unit can check his own wifi connection (ping to AP or gateway), and then, if it is fine - check device, and if it failed N times- reboot and set grace period until next checks.
3)Monitor several devices behind nat and send results outside, to controller

But i have following problem, different, 9 month old _P126_Ping already exist in playground, but it uses third-party ESP8266-only library (mine doesn't use any), and does preallocate quite large resources in ram even without init.
Honestly i didnt tested mine on ESP32, but it should be not hard to port it, if necessary.
Shall i push my plugin to playground under new ID or same ID, as 126?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Non-blocking ICMP ping plugin

#2 Post by grovkillen » 16 Aug 2019, 19:45

You could publish it to the main repository if you are gonna maintain it, else push to playground.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

nuclearcat
New user
Posts: 3
Joined: 16 Aug 2019, 18:21

Re: Non-blocking ICMP ping plugin

#3 Post by nuclearcat » 16 Aug 2019, 20:32

Thank you, seems i will test it internally, thoroughly, then will send pull request for main tree.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Non-blocking ICMP ping plugin

#4 Post by grovkillen » 16 Aug 2019, 22:29

Sounds good!
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

TD-er
Core team member
Posts: 8747
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Non-blocking ICMP ping plugin

#5 Post by TD-er » 17 Aug 2019, 21:37

Yep for sure sounds good.
You can already make a pull request and write a note along with it that it is still in test phase, so not yet to be merged.
Then I can also have a look at it :) (no I am not curious....)

nuclearcat
New user
Posts: 3
Joined: 16 Aug 2019, 18:21

Re: Non-blocking ICMP ping plugin

#6 Post by nuclearcat » 18 Aug 2019, 01:35

Done! Please let me know if anything need to be done in it, and if it is acceptable in general

TD-er
Core team member
Posts: 8747
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Non-blocking ICMP ping plugin

#7 Post by TD-er » 18 Aug 2019, 12:23

nuclearcat wrote: 18 Aug 2019, 01:35 Done! Please let me know if anything need to be done in it, and if it is acceptable in general
Been there, done that :)

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 41 guests