The wifi module is part of the BSP, so why couldn’t we just skip over the SoftAP part of the wifi_init process and simply store the current ethernet connection info wherever you require it (seems to be in files called WifiProvStatus, IotAPSSID, IotAPBSSID, IotAPPass, etc), and let the code continue to the Cloud provisioning?
You may be shocked to know I’ve been debugging through your code in trying to find a way for this to work and I’m making some progress, however I think part of the challenge is to get all the right stdkconfig flags set for this “hybrid” environment without really understanding them all.
Right now I’m running into a problem with es_mbedtls_task looking for a device certificate(??) during st_conn_start. I suspect I have a config flag setting wrong, because it should be using the generated keys stored in the device_info.json (I am guessing!).