Loading modules on the fly? #5757
Replies: 1 comment
-
Posted at 2017-05-23 by @gfwilliams At the moment there's nothing built in, and adding the module loading (despite it still being in the docs) is actually very low priority. The problem (much like on desktop) is that the However nothing stops you from writing your own async Posted at 2017-05-23 by @gfwilliams I'm just updating those docs for modules. The following works:
(but it's not synchronous) Posted at 2017-05-23 by EthraZa Thank you so much! Now I will hack it around to accomplish my world domination plan using Espruino. :) Posted at 2017-05-24 by @gfwilliams Worth noting that you probably want to download the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-05-23 by EthraZa
I was thinking in a way to loading modules on the fly and decide at runtime if I save then or not to the board.
I want the code itself to download modules as needed (by some configuration, for example), when the board is runing standalone, not connected to the WebIDE or something.
Is it possible? There is a good way to do that?
I was reading in https://www.espruino.com/Modules that WiFi-enabled Espruino will soon be able to require() stuff online. Will this work on other boards as well (like ESPxxxx)? Is that what I'm looking for?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions