maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Check if Offline Mode (https://talk.maemo.org/showthread.php?t=6756)

jgallen23 2007-06-11 21:59

Check if Offline Mode
 
is there any way in code to check if the device is in offline mode?

yerga 2007-06-12 10:10

Re: Check if Offline Mode
 
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/connec...nic/index.html

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


Cheers,

robmiller 2007-06-27 21:03

Re: Check if Offline Mode
 
now that I have my n800... can't you parse the output of ifconfig?

rob.

jgallen23 2007-06-27 23:26

Re: Check if Offline Mode
 
yeah, thats one way to do it. But I don't think ifconfig is installed by default, is it?

robmiller 2007-06-28 05:50

Re: Check if Offline Mode
 
I think it is, but for non-root user the path needs to be specified - /sbin/ifconfig

rob.


All times are GMT. The time now is 06:33.

vBulletin® Version 3.8.8