Espruino Wifi error #4467
Replies: 1 comment
-
Posted at 2017-05-20 by @allObjects It is not clear where you enter this. It is expected to be in the editor / right hand pane of the Web IDE and then uploaded. When you are connected to the Web / internet and do the upload to the Espruino board, your code is first parsed for modules required with Posted at 2017-05-20 by user76916 Oh I got you. I was directly using screen on my mac assuming the firmware has that js module. :) Posted at 2017-05-21 by user77200 I'm having the same problem. If I type this into the console in the IDE:
I get the same response:
My mac is connected to the internet, but is seems like the IDE is looking to the SD card rather than looking to espruino.com/modules. Suggestions? I'm new to Espruino as of yesterday, so I'm certain I've missed something.UPDATE: Posted at 2017-05-22 by Wilberforce
You need to enter this on the right hand side of the ide, so that the module can be loaded onto the board. If you enter it on the left side, you will get that message. edited by Gordon - I think you got the sides switched over :) Posted at 2017-05-22 by user76916 Hi there, So, if you have a require statement, you have to write the statement (or your code) on the right side of IDE and upload. This process downloads any dependency from the internet and uploads them correctly to the device. You will get a module not found error if you write a require statement in the REPL.
Posted at 2017-05-22 by @allObjects @wilberforce... may be left and right got a bit mixed up... did it... Things entered on the left side are JavaScript expressions / statements that are immediately executed. Therefore, if you enter something like If you really want to use the left side to load a module into the cache, you have to do it differently - as documented - in Modules.addCached("moduleName","moduleSourceCode"); (id and moduleName are the interchangeable). If you track what the IDE does when uploading code with a This though has limitations, because it does not handle nested If entered in the right side - editor side - and uploaded using the upload button - all this is taken care of. Now there may be the situation that modules are in deed on an SD card and the SD card is mounted on the Espruino board. If you then want to take advantage of that while still uploading code from the Editor side, you would stick the moduleName as string into a variable and then use the variable in the require expression:
Doing it this way, the upload process does not find a literally required module (finding the exact character sequence When it then comes to execution, the module is not found in the (PS: there is now also an option that modules are stored as functions in Espruino cache... I do though not know how it could be done using the left side... may be the reference doc is not updated yet...). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-05-19 by user76916
Hi,
When I enter on my Espruino WiFi
I get the error,
The firmware is 1v91. Any help appreciated on whether this is a hardware or software issue.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions