Hi and welcome to the stacks. Click on this link and see if that will help you get your wifi setup.
How to obtain WIFI status? How to open and shut the WIFI connection after the obtaining it? And how to realize it by programming?
Great apprecite your advice.