To push device into factory reset mode, there is one solution :
1) As soon as device get power it'd read variable store on SoC flash
2) And would immediately increase it by +1 & again stored it on SoC flash
3) After say 5 secs, it'd set that value to Zero & restore it on flash.
So in this method if after reboot, device found that value greater than 5, then it'd push device into factory reset mode.
How to implement it using #FCB & setting layer ? I wanna use this method along with #BluetoothMesh sample/demo examples. Could we make it as software module for all microcontrollers or SoCs which could be enable/disable using prj.conf ?
Thank You !!