English
English
简体中文
Register
Log In
English
English
简体中文
Register
Log In
Language
English
English
简体中文
Register
Log In

How to perform flash operations on a module using the BK7231N platform?

Last Updated on2024-11-14 09:14:36
Modules using the BK7231N platform can directly use the API functions in TuyaOS for Flash operations. Specific code examples can be found in the os_uf and os_kv examples included with TuyaOS.
If you want to encrypt your data for storage, you can use the storage interface wd_common_write of kv. Detailed interface descriptions can be found in the tuya_ws_db.h header file.
If you want to store data faster, you can use the storage interface of uf. First, use ufopen to open the file, then use ufwrite to write the file content, and after completing the file operation, use ufclose to close the file. Detailed interface descriptions can be found in the tuya_uf_db.h header file. Note that the content stored in uf may be lost.
Note: Wi-Fi&BLE dual-mode modules that support tuyaos support these interfaces.

Click for services and help

Help Center