Connecting 2 esp's is not my use-case. I rather need to establish a connection to a plain java (Server)Socket. My ESP JS code is very similar to yours. The code snippet I posted is executed in wifi.connect()'s callback-function and it's wifi-ing successfully. The rest is almost 1 to 1.
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.
@ClearMemory041063 thanks for the code!
Connecting 2 esp's is not my use-case. I rather need to establish a connection to a plain java (Server)Socket. My ESP JS code is very similar to yours. The code snippet I posted is executed in
wifi.connect()
's callback-function and it's wifi-ing successfully. The rest is almost 1 to 1.