Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Highlighted
Developer
Posts: 1,632
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

WIFI enable and disable again

With 10.2 is it possible to turn on and off wifi yet?

 

I read SayIt app can do this.

Retired
Posts: 418
Registered: ‎07-18-2012
My Device: Q10
My Carrier: Bell Canada

Re: WIFI enable and disable again

Have you tried https://developer.blackberry.com/native/reference/core/com.qnx.doc.wifi_service.lib_ref/topic/wifi_s... ?

 

Thanks!

--
Rob is no longer associated with BlackBerry.
Developer
Posts: 1,632
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Re: WIFI enable and disable again

tried with no luck.  is there a permission needed in the bar file?

 

Retired
Posts: 418
Registered: ‎07-18-2012
My Device: Q10
My Carrier: Bell Canada

Re: WIFI enable and disable again

I don't think you need a permission - but there is the access_wifi_public permssion added in 10.2...

 

https://developer.blackberry.com/native/documentation/core/com.qnx.doc.native_sdk.devguide/com.qnx.d...

 

However - the documentation lists lots of reasons why you could get back a busy error. (Are you getting a busy error?)

* Wifi is the default route for one of the permieters

* Some other app is bound to WiFi connectivity...

 

 

Thanks...

--
Rob is no longer associated with BlackBerry.
Developer
Posts: 1,632
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Re: WIFI enable and disable again

No luck.

 

    int rc = wifi_set_sta_power(false);

returns -1

 

Developer
Posts: 828
Registered: ‎10-16-2012
My Device: Red Z10
My Carrier: Rogers

Re: WIFI enable and disable again

[ Edited ]

I dont know how it is, but it is possible some way as SayIt was just updated with features that turn wifi & bluetooth on & off... I thought of you when I read the post last night Smiley Wink