thax!
Yes,i used jswrap_encodeURIComponent before btoa base64 encode for those utf8 multibyte Symbol or characters, and use require('Storage').write("abc.js",decodeURIComponent(atob("Cmcu...DApOw==")),0,1000); write to the Storage.
use 0,1000 for slicing as the file little big...
atob("Cmcu...DApOw==").length is no problem, i'll try to modify the espruino build
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
thax!
Yes,i used
jswrap_encodeURIComponent
beforebtoa
base64 encode for those utf8 multibyte Symbol or characters, and userequire('Storage').write("abc.js",decodeURIComponent(atob("Cmcu...DApOw==")),0,1000);
write to the Storage.use
0,1000
for slicing as the file little big...atob("Cmcu...DApOw==").length is no problem, i'll try to modify the espruino build