author | mickeyl <mickeyl> | 2005-07-10 13:12:10 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-07-10 13:12:10 (UTC) |
commit | 779359497a582d510da0448f41a14e44db6b52af (patch) (side-by-side diff) | |
tree | f0847f5705f0bfc82b1373d2270683d8c7cdf94e /examples/opiebluez | |
parent | 61fc6ad9e672f89e2c01f233056ab4869a180efd (diff) | |
download | opie-779359497a582d510da0448f41a14e44db6b52af.zip opie-779359497a582d510da0448f41a14e44db6b52af.tar.gz opie-779359497a582d510da0448f41a14e44db6b52af.tar.bz2 |
opieshower: add BT device enumeration
-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,4 +1,20 @@ +#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; } |