Apart from using an extension which does not work across all versions of android, there is no way to set up and control access to WIFI.
Bluetooth exists so why not WiFI for tablets and cell phones?
If you want to connect to the internet for IOT, web control an Arduino or Raspberry Pie device which includes a password and SSID, it is not possible using blocks on MIT APP INVENTOR.
Only an external extension com.puravidaapps.TaifunWiFi.aix can be used, and the author admits this is not reliable for all android tablets.
Surely MIT can put someone into creating this inside App Inventor?
We need to be able to connect to a SSID including password, send it IP address, and data using the web1 blocks.
We also need to see the response and check on the status of the connection.
It also needs to be stable across all android versions.