11-25-2013 09:39 AM
You may be looking for the wifi service library, depending on what you are trying to do: https://developer.blackberry.com/native/reference/
11-25-2013 09:49 AM
Basically you need to use
and then interpet events of type wifi_event_t assisted by wifi_station_connection_get_state(
11-25-2013 10:01 AM
In fact this has been completely explained in another post from John Murray:
This should give you what you need I think :-)
11-26-2013 03:10 AM
Thank you mwoolley for solution.
Is there any signal slot mechanism for the same?
I have to read events in infinite loop and using either select or poll.
Will this affect device battery or application performance?
11-26-2013 04:08 AM
You're welcome :-)
No, there are no signals/slots for this.
If you use select on the FD, you'll be performing blocking I/O so will only perform actual processing when there's an event to read. See http://www.gnu.org/software/libc/manual/html_node/