script works over usb connection, does not create a server when run over usb power only #3543
Replies: 1 comment
-
Posted at 2014-01-30 by @gfwilliams Hi Sven,
So I think your issue is that you're not initialising the CC3000 on startup. When you type There's a better example of creating a server that can work at power-on here: http://www.espruino.com/WiFi+Enabled+Thermometer It uses the special function Looking at it, I think there may still be a problem with that example though. Instead, copy the example apart from the line Now if you connect to a USB power supply it should be fine. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-01-30 by hansamann
This is a bit strange and most likely user error. But here it is: I created an espruino script with the web ide and create a server on port 80 - this all works when I transfer the script via the web ide.
I then write save(); via the web ide command line to save the program to flash, disconnect from the mac's USB and plug the espruino via the same USB cable into a USB power supply. I've tried this a couple of times now, but the server is no longer available. I also checked my router, the espruino did get assigned the same IP.
Because I had no idea how console.log() works or what it does, I commented out these calls. Would that be OK to leave them in, even though the USB cable is just a power supply?
But again, this does not seem the real issue. Is save() the issue? What do I need to do if I want to save a script in the espruino and boot it up whenever I connect the espruino to power?
Thx
Sven
Beta Was this translation helpful? Give feedback.
All reactions