Hi,
My project is showing SSID <unknown SSID>. Can anyone help to know the reason?
I have attached the project for the reference.
/Code
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim WiFi As MLwifi
'Dim WiFiScan As MLScan
Public myTempIP, mySSID, myPassword As String
Private rp As RuntimePermissions
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private Label1 As Label
Private Label2 As Label
Private Label3 As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
'WiFi.
'Do not forget to load the layout file created with the visual designer. For example:
rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCATION)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
If FirstTime Then
' pscal
'connectionSuccess=False
Activity.LoadLayout ("Home_Screen")
mySSID=WiFi.WifiSSID
'UDPData_Send("","")
Sleep(1000)
Label1.Text=mySSID
If WiFi.isWifiConnected And WiFi.WifiSSID="Mumbai Indians" Then
Label3.Text="Condition matched"
Else
Label3.Text="Condition not matched"
End If
'Connect_Device
End If
End Sub
/Code end
My project is showing SSID <unknown SSID>. Can anyone help to know the reason?
I have attached the project for the reference.
/Code
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim WiFi As MLwifi
'Dim WiFiScan As MLScan
Public myTempIP, mySSID, myPassword As String
Private rp As RuntimePermissions
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private Label1 As Label
Private Label2 As Label
Private Label3 As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
'WiFi.
'Do not forget to load the layout file created with the visual designer. For example:
rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCATION)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
If FirstTime Then
' pscal
'connectionSuccess=False
Activity.LoadLayout ("Home_Screen")
mySSID=WiFi.WifiSSID
'UDPData_Send("","")
Sleep(1000)
Label1.Text=mySSID
If WiFi.isWifiConnected And WiFi.WifiSSID="Mumbai Indians" Then
Label3.Text="Condition matched"
Else
Label3.Text="Condition not matched"
End If
'Connect_Device
End If
End Sub
/Code end