First start wifi credentials setup and base data

Hello guys, can someone help me im looking fore some example of AP esp32 in esp-idf framework. I need to set wifi credentials and name of board on first start of board. I know there are few options like smartconfig and wifi provisining but eather of this options don’t provide option to set name of the board. Thanks for your replies.