Saving modules and using saved functions? #6032
Replies: 1 comment
-
Posted at 2018-04-16 by Wilberforce Read up on how require works and how the save function works. Posted at 2018-04-16 by @gfwilliams It sounds like as @wilberforce says just saving the code will do what you want... Here's a good start: http://www.espruino.com/Saving However if you simply type Posted at 2018-04-16 by Hapseleg Ah I see, thank you so much :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-04-16 by Hapseleg
Hello
Is it somehow possible to call a function you have saved on the ESP8266??
For example:
I would like to save the stepper module on the ESP8266 so I am able to do stuff like:
without having to get the module off the web and upload it everytime.
The problem with this is that if I connect to the ESP8266 over wifi, my computer is no longer connected to the web and can therefore no longer get the module.
And also, would it be possible to save something like this:
to the ESP8266, so that I can just send something like this: forward(1000);
Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions