summaryrefslogtreecommitdiff
path: root/examples/opiebluez/oblueztest
authormickeyl <mickeyl>2005-07-10 13:12:10 (UTC)
committer mickeyl <mickeyl>2005-07-10 13:12:10 (UTC)
commit779359497a582d510da0448f41a14e44db6b52af (patch) (side-by-side diff)
treef0847f5705f0bfc82b1373d2270683d8c7cdf94e /examples/opiebluez/oblueztest
parent61fc6ad9e672f89e2c01f233056ab4869a180efd (diff)
downloadopie-779359497a582d510da0448f41a14e44db6b52af.zip
opie-779359497a582d510da0448f41a14e44db6b52af.tar.gz
opie-779359497a582d510da0448f41a14e44db6b52af.tar.bz2
opieshower: add BT device enumeration
Diffstat (limited to 'examples/opiebluez/oblueztest') (more/less context) (show whitespace changes)
-rw-r--r--examples/opiebluez/oblueztest/main.cpp16
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,5 +1,21 @@
+#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;
}