summaryrefslogtreecommitdiff
path: root/libopie2/examples/opienet
authormickeyl <mickeyl>2003-10-11 23:54:03 (UTC)
committer mickeyl <mickeyl>2003-10-11 23:54:03 (UTC)
commita8fe3ba1544ca2a2ad2559e3094acbb284cc7783 (patch) (side-by-side diff)
treeef60fa83b396d16580f5ce7ab2b5c147fbceeabf /libopie2/examples/opienet
parente6273e146d3ef3f9387fbc3b6a214f9b3d08221e (diff)
downloadopie-a8fe3ba1544ca2a2ad2559e3094acbb284cc7783.zip
opie-a8fe3ba1544ca2a2ad2559e3094acbb284cc7783.tar.gz
opie-a8fe3ba1544ca2a2ad2559e3094acbb284cc7783.tar.bz2
add scanning skeleton (wip)
Diffstat (limited to 'libopie2/examples/opienet') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp b/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp
index 607d8f1..fc2026f 100644
--- a/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp
+++ b/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp
@@ -56,6 +56,18 @@ int main( int argc, char** argv )
iface->setMode( "managed" );
+ // network scan
+
+ int stations = iface->scanNetwork();
+ if ( stations != -1 )
+ {
+ qDebug( "DEMO: # of stations around = %d", stations );
+ }
+ else
+ {
+ qDebug( "DEMO: Warning! Scan didn't work!" );
+ }
+
/*
// first some wrong calls to check if this is working