summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp b/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp
index 6326ad0..607d8f1 100644
--- a/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp
+++ b/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp
@@ -43,12 +43,20 @@ int main( int argc, char** argv )
iface->setMode( "adhoc" );
if ( iface->mode() != "adhoc" )
qDebug( "DEMO: Warning! Can't change operation mode" );
else
qDebug( "DEMO: Operation Mode change successful." );
+ // RF channel
+ qDebug( "DEMO: Current Channel is '%d'", iface->channel() );
+ iface->setChannel( 1 );
+ if ( iface->channel() != 1 )
+ qDebug( "DEMO: Warning! Can't change RF channel" );
+ else
+ qDebug( "DEMO: RF channel change successful." );
+
iface->setMode( "managed" );
/*
// first some wrong calls to check if this is working
iface->setPrivate( "seppel", 10 );