Imp running user code snippets


#1

Hello, kinda newbie with the imp… I’m wondering if it’s possible to run code snippets made by the costumer (people who bought/have my device) in the device (locally) to take advantage of the microcontroller without losing the ability to send updates to my (the designer) main code. Any idea will be welcome. Thanks in advance.


#2

Possible, but you’d need some server-side infrastructure and code running in the same context as your code would be able to do some amount of introspection - ie your code and the customer’s code are running in the same VM.

The way that immediately comes to mind is that you provide an API for users to upload their snippets; you then append/enclose them with your code and upload them to a unique device group containing just that user’s device and push it via the impcentral API to the device.