Exported Functions
- group Mesh_Flash_Exported_Functions
Defines
-
mesh_flash_save(pdata, size, offset)
save the data to the Flash just like the RAM
There is no need to worry about the read/erase/write operation of the flash
- 参数:
pdata – [in] the data pointer
size – [in] the data size
offset – [in] the data offset
- 返回值:
0 – success
!0 – fail
- 返回:
the operation result
-
mesh_flash_load(pdata, size, offset)
load the data to the Flash just like the RAM
There is no need to worry about the read/erase/write operation of the flash
- 参数:
pdata – [out] the data pointer
size – [in] the data size
offset – [in] the data offset
- 返回值:
0 – success
!0 – fail
- 返回:
the operation result
Functions
-
mesh_node_state_t mesh_flash_restore_node_state(void)
load the node state from the NVM
It can be used to get the node state in advance of mesh_init. !!!Attention: the API shall be called after all the models have bee registered!!!
- 返回:
the node state
-
mesh_flash_save(pdata, size, offset)