From 779359497a582d510da0448f41a14e44db6b52af Mon Sep 17 00:00:00 2001 From: mickeyl Date: Sun, 10 Jul 2005 13:12:10 +0000 Subject: opieshower: add BT device enumeration --- (limited to 'examples') diff --git a/examples/opiebluez/oblueztest/main.cpp b/examples/opiebluez/oblueztest/main.cpp index f50847e..35fd2d9 100644 --- a/examples/opiebluez/oblueztest/main.cpp +++ b/examples/opiebluez/oblueztest/main.cpp @@ -1,5 +1,21 @@ +#include +#include +#include + +using namespace Opie::Core; +using namespace Opie::Shower; + 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; + ++it; + } return 0; } -- cgit v0.9.0.2