This example from Waveshare Corporation realizes the function of enabling the WiFi hotspot on the ESP32-C5 development board and supporting connection from mobile phones.