Enable ap mode and with the ip i have to open a flask server using python and after that i hav to enable the device to be in station mode

This topic is being answered here.