Replies: 3 comments 3 replies
-
Check out mods. They let you install precompiled JavaScript and resources on top of a base firmware image. They are used for all the examples in our book, for example, to make it quick to try out examples. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the pointer to the docs! I have some follow-up questions:
|
Beta Was this translation helpful? Give feedback.
-
Is there a generic mod host that runs on esp32 and gets mods over the network? What I'm looking for is a bare bones example to get started with having an esp32 remote doing nothing other than "being on the network" and being able to ship it mods to run. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is is possible to make incremental builds with the moddable sdk? E.g. where a base system is loaded and only small portions of the app are rebuilt and reloaded? Obviously this requires some form of incremental linking and loading...
I really love interpreted languages on embedded systems because of the built-in REPL capability. I don't actually use a true REPL much, if ever, but the REPL allows loading some small snippets of code for rapid experimentation as well as for troubleshooting. I know that XS uses server-side compilation and ships byte code, but that doesn't preclude a REPL-like environment on the desktop where I can type (or hit save/run in my editor) and the code gets compiled locally and then shipped to the MCU to be loaded and executed.
I'm also quite fond of having remote MQTTS-only devices (esp32, specifically) whose only comm mechanism is to an MQTTS server. (I use this almost exclusively with Micropython.) This implies quite a hefty base system, since it has to support MQTTS as well as loading and managing new code. Being able to pre-load such a base system including many of the larger stable portions of a project and then just sending small application code overlays is incredibly powerful in my experience. I actually only develop apps using this model, even when the device is sitting on my desktop...
Maybe all this already exists and I just haven't discovered it yet... Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions