summaryrefslogtreecommitdiff
path: root/examples/opiebluez/oblueztest/main.cpp
blob: 35fd2d97fb0ffb2bb15bb3076b69db65859aa2f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
}