Reply
Thread Tools
Posts: 88 | Thanked: 15 times | Joined on Jun 2007
#1
is there any way in code to check if the device is in offline mode?
 
yerga's Avatar
Posts: 696 | Thanked: 1,012 times | Joined on Mar 2006 @ Asturies, Spain
#2
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,
 
Posts: 64 | Thanked: 9 times | Joined on Jun 2007 @ abuja, nigeria (currently)
#3
now that I have my n800... can't you parse the output of ifconfig?

rob.
 
Posts: 88 | Thanked: 15 times | Joined on Jun 2007
#4
yeah, thats one way to do it. But I don't think ifconfig is installed by default, is it?
 
Posts: 64 | Thanked: 9 times | Joined on Jun 2007 @ abuja, nigeria (currently)
#5
I think it is, but for non-root user the path needs to be specified - /sbin/ifconfig

rob.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 14:07.