PDA

View Full Version : Check if Offline Mode


jgallen23
06-11-2007, 05:59 PM
is there any way in code to check if the device is in offline mode?

yerga
06-12-2007, 06:10 AM
I don't know if it will be possible but you can look the libconic API. Libconic is the library that handles the Internet connectivity in the n800.

http://maemo.org/api_refs/3.0/connectivity/libconic/index.html

It could be useful in what you need.
Also there is Python bindings.


Cheers,

robmiller
06-27-2007, 05:03 PM
now that I have my n800... can't you parse the output of ifconfig?

rob.

jgallen23
06-27-2007, 07:26 PM
yeah, thats one way to do it. But I don't think ifconfig is installed by default, is it?

robmiller
06-28-2007, 01:50 AM
I think it is, but for non-root user the path needs to be specified - /sbin/ifconfig

rob.