Hi All,
When my BLE device call data update function, the error code would return ERROR 261893 as shown below image

If I remove the err_code checking, the code is actually running OK.
I can see the data being updated by notification through BLE app. The problem only happen if I do err checking after batt_data_change.

I saw that there is another user started the topic ERROR 12291 [Unknown error code], I dont think it is the same problem.
Attached is the main and ble code, please help to support..