EspruinoWifi - Ping function / Default gateway #4657
Replies: 1 comment
-
Posted at 2017-10-18 by @gfwilliams Hi, It looks like something like this will work to add Ping if you need it:
but I'll see about adding that to the Espruino WiFi library. I'm afraid I can't see a way of getting the default gateway address - but if you figure out how to get it from the ESP8266 via AT commands then I'm happy to add that. Posted at 2017-10-18 by Sacha You are always helpfull Gordon. This is the reason why i like to be a patreon. Sacha Posted at 2017-10-19 by @gfwilliams Thanks! :) Posted at 2018-01-08 by @gfwilliams Just to add - this is now part of the Espruino WiFi library - Posted at 2018-07-30 by Denis Dear Grodon, I use wifi.ping with setInterval under v1.96 and NodeMCU, it have memory leak in case if I use callback function and function wifi.ping always return undefined. It's NodeMCU issues?
result:
Posted at 2018-07-31 by @gfwilliams Yes, it looks likely it's an ESP8266 bug (however that's a lot of data to be leaked - are you sure you're not running other code as well?) Please can you post this in the ESP8266 forum and carry on there? You're more likely to be able to get help there as I don't know the internals of the ESP8266 port that well. Posted at 2018-07-31 by Denis Yes, Grodon, I recheck it and run only this code(see below) and have same result.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-10-18 by Sacha
Dear Gordon
Besides the udp send/receive functions i have another wish for 1.95 ;-).
Could you please implement the ping function in the wifi library as well.
Is there a way to get the default gateway address received by the dhcp protocoll ?
Thanks
Sacha
Beta Was this translation helpful? Give feedback.
All reactions