08-03-2021, 03:34 AM
If the device doesn't boot due to a bad main.py then the BLE interfaces may still work (e.g. you can upload a new main.py). If not you need to boot in safe mode and then use BLE to fix the problem. Safe mode is documented in the Troubleshooting section.
To debug the underlying problem try uploading the original (unmodified) main.py and try executing the commands on the console instead. I suspect the problem is either that HRV needs to be lowercase or simply that there is not enough memory to compile the script.
If you are hitting RAM limits you need to keep working through the options. Loading an .mpy uses less RAM than loading a .py and including the app in the flash image uses even less RAM than a .mpy .
To debug the underlying problem try uploading the original (unmodified) main.py and try executing the commands on the console instead. I suspect the problem is either that HRV needs to be lowercase or simply that there is not enough memory to compile the script.
If you are hitting RAM limits you need to keep working through the options. Loading an .mpy uses less RAM than loading a .py and including the app in the flash image uses even less RAM than a .mpy .