Languages

Menu
Sites
Language
Wi-Fi Connection

I want to check the wireless connection in my App .Would you please let me know how can I do this in C#.Thanks

 

Responses

2 Replies
cheoleun moon

Wireless connection means WiFi?

There are two ways to check the WiFi connection.

 

1. Using Tizen.Network.WiFi package (https://developer.tizen.org/dev-guide/csapi/namespaceTizen_1_1Network_1_1WiFi.html)

WiFiManager class provides functions for WiFi operations.

You can check the WiFi state using WiFiManager.ConnectionState property.

It returns an enum, Tizen.Network.WiFi.WiFiConnectionState.

 

enum Tizen.Network.WiFi.WiFiConnectionState
Failure 

Connection failed state

Disconnected 

Disconnected state

Association 

Association state

Congfiguration 

Configuration state

Connected 

Connected state

 

2. Using Tizen.Network.Connection package (https://developer.tizen.org/dev-guide/csapi/namespaceTizen_1_1Network_1_1Connection.html)

ConnectionManager class provides functions about data connections.

ConnectionManager.WiFiState property contains the state of the Wi-Fi.

If the WiFi connection has been made, ConnectionManager.WiFiState returns ConnectionState.Connected.

 

Fattaneh Ameri Mahabadian

Thanks,