Page 1 of 1

Re: Is it possible to run micropython scripts loaded from hTTP?

Posted: Tue Jul 14, 2020 4:46 pm
by dhylands
It should definitely be possible to do. Basically, it mostly boils down to how much memory you have. But you can use exec to execute a string containing python source code.

Code: Select all

>>> exec('for i in range(5):\n  print("i =", i)\n')
i = 0
i = 1
i = 2
i = 3
i = 4
>>>