This is for led lighting application, It should restore the last power state on/off after power cycle. Also, please let know whether present_onoff or target_onoff to be used in mesh_onoff_server_process_status.
Please check the attachment for entire code.
The attached file seems to be empty.
Anyway, If it is for lighting application, I would suggest you to pick up more appropriate mesh application, something like mesh_light_lightness_server, where the generic power on/off server is already implemented. And then develop your functionality on top of it. You can try using light_dimmable demo app directly which is a complete demonstration (where the on board LED is being controlled from the mobile app) light_lightness_server mesh model.
Based on the other functionalities (e.g.color), you can try choosing other lighting mesh models as well (e.g. light_hsl_ctl_server) and develop on top of it..
Thank you for the suggestion.