As @DrAzzy says, I don't see any code - but if the console on the left-hand side isn't responding it's usually a problem with the upload.
On Espruino, code is executed as it is uploaded, and if you write code that takes a long time to execute then it can cause the PC to wait too long to send data, and in the end the PC will just not send it.
So what you need to do (in fact probably what you meant to do) is to make sure that your main code (initialising the network/socket connection?) happens in the onInit function, so that when saved, it will be called each time Espruino starts up.
When you do that you'll need to manually type onInit to start it running after upload, but that may fix your problems.
Otherwise you might be able to go into the Web IDE's settings and click 'Throttle Send' - it'll slow down transmission and might avoid your problems without you having to change your code.
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.
As @DrAzzy says, I don't see any code - but if the console on the left-hand side isn't responding it's usually a problem with the upload.
On Espruino, code is executed as it is uploaded, and if you write code that takes a long time to execute then it can cause the PC to wait too long to send data, and in the end the PC will just not send it.
So what you need to do (in fact probably what you meant to do) is to make sure that your main code (initialising the network/socket connection?) happens in the
onInit
function, so that when saved, it will be called each time Espruino starts up.When you do that you'll need to manually type
onInit
to start it running after upload, but that may fix your problems.Otherwise you might be able to go into the Web IDE's settings and click 'Throttle Send' - it'll slow down transmission and might avoid your problems without you having to change your code.