This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Static variables are reset after BLE sending

Hello ! I have a problem with my program (on a nRF52 board) : when I send a value to the board via BLE, it seems that my static variables are reset.

I noticed that, because in my main, I have a state machine (with a switch case), and when I send a value via BLE (8 bits or 32 bits), the program doesn't return in the good state : it returns in the initialisation case.

Do you know how can I solve this problem please ?

Related