http module doesn't seem to work on boot up only in web ide #5833
Replies: 1 comment
-
Posted at 2017-11-14 by BrendanDawes Managed to get to the bottom of this. If I plug the board into a USB power adapter (not a USB port on my Mac) it all boots up and works fine. If i try and power it up from a USB port on my mac it hangs when it gets to the http part. My guess is it's trying to communicate through the USB port. Maybe something to do with me sending console.log messages? Posted at 2017-11-15 by @gfwilliams Ahh, yes - check out the section Basically Espruino can't tell if you've got an application running on your PC or not, and it decides not to lose any data you send down USB - so once a certain amount of info has been printed to the console it'll stop and wait for it to be read. You could just do Posted at 2017-11-15 by BrendanDawes Thanks Gordon —I should have taken a look at the trouble shooting first! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-11-14 by BrendanDawes
That should be boot up.
Loving my first adventures with the Espruinio Wifi.
However I'm having an issue getting the http module to work from flashed memory when not using the web ide.
When I send code across (using send and save) everything works fine — http module fetches data from the net just great, displaying data on an oled screen.
Then when I unplug the board and and plug it back in, powering the board, the start up sequence I've created all works, telling me on the old screen it's connected to wifi all fine, but when it then tries to access anything via the http module it just stalls. I've tried it with different urls and they all behave the same - work great via the web ide, but not on normal boot up.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions