How to wifi connect on Tizen 2.2.1 ?

How to wifi connect on Tizen 2.2.1 ?

BY 07 Jul 2015 Native Application Development

I want to develop ‘Auto connect Wi-Fi’ as Native Application for the version of Tizen 2.2.1.

For example, The AP of SSID which I want to connect is ‘sample’, the encryption is ‘WPA2-PSK’, and The Local address sceme is ‘DYNAMIC’.

I tried to set SSID by using ‘WifiBSSInfo’ and input Wi-Fi password using ‘SetEapMethodInfo Method’ in ‘WifiSecurityInfo’.

As result, I attempted to connect Wi-Fi using ‘Wi-Fi Manager Method’, but I checked some errors as below.

result WifiSystemAdapter::Connect(int, const Tizen::Net::Wifi::WifiBssInfo&)(903) > [E_FAILURE] Failed to set network key.
result Tizen::Net::Wifi::_WifiIpcProxy::Connect(const Tizen::Net::Wifi::WifiBssInfo&)(349) > [E_FAILURE] Propagating through IPC.
result Tizen::Net::Wifi::_WifiManagerImpl::Connect(const Tizen::Net::Wifi::WifiBssInfo&)(376) > [E_FAILURE] Propagating.
result Tizen::Net::Wifi::WifiManager::Connect(const Tizen::Net::Wifi::WifiBssInfo&)(186) > [E_FAILURE] Propagating.

Also, To use ‘UpdateBssInfo Method’ in ‘Wi-Fi Manager’, I need the previlege. what is the previlege? 

and when I add ‘privilege/wifimanager’, I got some errors which I can’t use ‘Platform authorization’ Please tell me how to solve this problem.

 

Written by