ok ... I try to explain my case in more detail.
Let's suppose that at home there is 2 router ... each one with its own SSID (ex: HOMESSID and WANEDY) ... and my device is initially connected via WiFi to HOMESSID ...
Now, I need that whenever I open my App, it connects to WANEDY because it is in that network that I have my resources that I want to use.
So the first thing the App does is check if the WiFi is on
call Taifun1.IsEnable.
Then, if WiFi is not activated, use:
call Taifun1.IsEnable
Then, knowing the SSID of the AP to which I want to connect (WANEDY), whenever I open the App, I look for if it is within reach:
call Taifun1.AvailableSSIDs
Then, if (WANEDY) in list of 'available' then:
call Taifun1.ConnectSSID / SSID: 'WANEDY'password:' 12345678 '
And I do what I have to do with the application ...
.
.
.
Up there, everything works fine ...
Now suppose I left home and when I returned, the Wi-Fi on my device changed (manually or automatically) to HOMESSID ...
When I start the App again ... At that moment, following the same routine explained above, to change from HOMESSID to WANEDY, it reaches the point of executing:
'call Taifun1.ConnectSSID / SSID: 'WANEDY'password:' 12345678 '
And at that moment, a second copy 'WANEDY' is created ...
Every time I start my App, if the WiFi is not in 'WANEDY', a new 'WANEDY' is created in the configuredSSID record of my device.
In other words, 'call TaifunWiFi1.connect' always CREATES a new one and does not CHANGE to an already existing SSID, preconfigured.