Great! I think one issue you have might be that Ethernet.getIP doesn't use a callback so never calls your function - it just returns the IP as-is.
That's definitely an issue, as it should use the same form as other networking APIs to avoid this kind of confusion. I just filed an issue to get it fixed.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Great! I think one issue you have might be that
Ethernet.getIP
doesn't use a callback so never calls your function - it just returns the IP as-is.That's definitely an issue, as it should use the same form as other networking APIs to avoid this kind of confusion. I just filed an issue to get it fixed.