Ok, it is working most of the time, but sometimes the JSON file gets destroyed. I will share my code later and hopefully someone can point me out where the error is. I think it is related to the phone writing the json file in the same time the watch is trying to read it. Are there any ways to lock a file, or something familiar?
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.
Ok, it is working most of the time, but sometimes the JSON file gets destroyed. I will share my code later and hopefully someone can point me out where the error is. I think it is related to the phone writing the json file in the same time the watch is trying to read it. Are there any ways to lock a file, or something familiar?