• BluetoothServer
  • BluetoothServer Class

    (nymeaserver::BluetoothServer)

    This class represents the bluetooth server for nymead. More...

    Header: #include <BluetoothServer>
    Inherits: TransportInterface

    Public Functions

    BluetoothServer(QObject * parent = 0)
    ~BluetoothServer()

    Reimplemented Public Functions

    virtual void sendData(const QUuid & clientId, const QByteArray & data)
    virtual void sendData(const QList<QUuid> & clients, const QByteArray & data)

    Public Slots

    virtual bool startServer()
    virtual bool stopServer()

    Static Public Members

    Additional Inherited Members

    Detailed Description

    This class represents the bluetooth server for nymead.

    The bluetooth server allows clients to connect to the JSON-RPC API using an RFCOMM bluetooth connection. If the server is enabled, a client can discover the services running on this host. The service for the JSON-RPC api is called nymea and has the uuid 997936b5-d2cd-4c57-b41b-c6048320cd2b .

    See also TransportInterface.

    Member Function Documentation

    BluetoothServer::BluetoothServer(QObject * parent = 0)

    Constructs a BluetoothServer with the given parent.

    BluetoothServer::~BluetoothServer()

    Destructs this BluetoothServer.

    [static] bool BluetoothServer::hardwareAvailable()

    Returns true if a Bleutooth hardware is available.

    [virtual] void BluetoothServer::sendData(const QUuid & clientId, const QByteArray & data)

    Reimplemented from TransportInterface::sendData().

    Send data to the client with the given clientId.

    [virtual] void BluetoothServer::sendData(const QList<QUuid> & clients, const QByteArray & data)

    Reimplemented from TransportInterface::sendData().

    Send the given data to the clients.

    [virtual slot] bool BluetoothServer::startServer()

    [virtual slot] bool BluetoothServer::stopServer()