Mon 2017.07.24
Thank you for posting your snippet. I see what you are doing with multiple connect objects, but I'm struggling as to why the need for several.
I struggled with the different modules myself, but was able to use just one instance of the WiFi object.
Although this is not a solution to what you are after, please read over this to see if it sparks some ideas.
'STA or AP mode browser unable to connect to ESP8266-12' http://forum.espruino.com/conversations/300549/
The overall gist is to create a server/station object using the WiFi class module.
I'm still searching for some code snippets to see if we are able to use a different class object rather than Wifi to accomplish what you are after.
@Robin 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.
Mon 2017.07.24
Thank you for posting your snippet. I see what you are doing with multiple connect objects, but I'm struggling as to why the need for several.
I struggled with the different modules myself, but was able to use just one instance of the WiFi object.
Although this is not a solution to what you are after, please read over this to see if it sparks some ideas.
'STA or AP mode browser unable to connect to ESP8266-12'
http://forum.espruino.com/conversations/300549/
The overall gist is to create a server/station object using the WiFi class module.
I'm still searching for some code snippets to see if we are able to use a different class object rather than Wifi to accomplish what you are after.