The CaptivePortal example should be functional.
The connect call is asynchronous, so you would need to put the test code into the connect() callback function (right below the console.log()).
"should be" is not an option :-) Did you try it specifically on ESP?
I do not see a difference from captiveportal vs test_dgram...., both use bind and server.on...
Well I will give a try anyway....I will need to implement send-udp on my PC than.
@Vasily started
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.
The CaptivePortal example should be functional.
The connect call is asynchronous, so you would need to put the test code into the connect() callback function (right below the console.log()).