Calling Bangle.AppLog.clearlog() from the python script does the trick. All ftclog files get removed, the app gets reloaded and I am left with a grin on my face :D
Also, as suggested by @Gordon I used the load() function in clearLog() and it works like a treat
Thanks again.
P.S. I should really save the incoming filename so I don't have to hardcode it in the clearLog() :D
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.
Thanks @Gordon and @allObjects for the pointers. I did something hopefully in line with your suggestions and it seems to work! Wahooooo!
Here's how I added to the global
Bangle
name spaceCalling
Bangle.AppLog.clearlog()
from the python script does the trick. Allftclog
files get removed, the app gets reloaded and I am left with a grin on my face :DAlso, as suggested by @Gordon I used the
load()
function inclearLog()
and it works like a treatThanks again.
P.S. I should really save the incoming filename so I don't have to hardcode it in the
clearLog()
:D