why m_storageHandle_DeviceName became to 0xFFFFFFFF, its value was init by pstorage_register when app startup, but here it lost value. Can anybody help me ?
// event on receiving data from ble uart service
static void on_nus_data_evt(ble_nus_t * p_nus, uint8_t * p_data, uint16_t length)
{
uint32_t err_code = 0;
if (p_data != NULL && length > 0)
{
err = pstorage_clear( & m_storageHandle_DeviceName,
DEVICE_NAME_LENGTH*4);
APP_ERROR_CHECK(err);
}
}