Is there any way of doing something like that in the ESP8266?
It would require 1 of 2 things I am not sure can exist...
#1, program code would have to run from RAM, (given the limited RAM available this might not be practical) or
#2, a method of changing the program ROM with data from SPIFFS or LittleFS (this would require erasing and programming part of the ROM using some kind of paging.) (Of course, this would exercise the FLASH a lot and may quickly exceed the write cycles of the FLASH.)
I think C++ can handle something like that with the overloading function (I don't know if I am using that term correctly.)
Any ideas?
Thanks, Mark.