Flash encryption and JSON files
- 
					
					
					
					
 Hello everyone. First of all, I've been looking for a while for a related topic but I couldn't find. So, I'm sorry if this is a duplicate topic. I could find a lot about the flash encryption, but I could not find if the application can write/modify a JSON file stored in the flash. I'll use BLE to change some configurations with the device in place and I need these changes to be permanent, so I chose the JSON file. My question: can an encrypted flash on a LoPy (dev board and/or OEM) board have a JSON file that can be modified over BLE? More specifically, is it possible to use something like this: with open('/flash/node_config.json','w') as fp: fp.write(json.dumps(self._cfg_file))Thanks for your support. 
 
- 
					
					
					
					
 Hi Marco, Normal file operations should work: f = open('node_config.json', 'w') f.write('some data') f.close()and import osfor more. 
 
