-rw-r--r-- | examples/opiebluez/oblueztest/main.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
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,3 +1,19 @@ +#include <opie2/odebug.h> +#include <opie2/obluetooth.h> +#include <opie2/oinfrared.h> + +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; |