summaryrefslogtreecommitdiff
path: root/examples/opiebluez/oblueztest/main.cpp
Side-by-side diff
Diffstat (limited to 'examples/opiebluez/oblueztest/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--examples/opiebluez/oblueztest/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/opiebluez/oblueztest/main.cpp b/examples/opiebluez/oblueztest/main.cpp
index 2e66d9a..361dbd8 100644
--- a/examples/opiebluez/oblueztest/main.cpp
+++ b/examples/opiebluez/oblueztest/main.cpp
@@ -8,13 +8,16 @@ int main( int argc, char** argv )
{
OBluetooth* sys = OBluetooth::instance();
OBluetooth::InterfaceIterator it = sys->iterator();
while( it.current() )
{
odebug << "APP: Bluetooth host controller interface '" << it.current()->name() << "' has MAC '" << it.current()->macAddress() << "'" << oendl;
+ odebug << "APP: Interface is " << ( it.current()->isUp() ? "UP" : "DOWN" ) << ". Trying to toggle state..." << oendl;
+ it.current()->setUp( !it.current()->isUp() );
+ odebug << "APP: Interface is " << ( it.current()->isUp() ? "UP" : "DOWN" ) << "." << oendl;
++it;
}
return 0;
}