Does it work if you get rid of the oninit and save ?
Just upload the code in the simple form and send something to serial2
if you use save() in upload code than wrap it with setTimeout(save,2000) to be sure that code is completely upload before running save().
Good day! Please help. ESP32S not working Serial / UART
| |_ ___ ___ _ ||___ ___
| |_ -| . | _| | | | | . |
||| || |_|||_|_|
1v94 Copyright 2016 G.Williams
Espruino is Open Source. Our work is supported
only by sales of official boards and donations: