This class represents the bluetooth server for nymead. More...
Header: | #include <BluetoothServer> |
Inherits: | TransportInterface |
BluetoothServer(QObject * parent = nullptr) | |
~BluetoothServer() |
virtual void | sendData(const QUuid & clientId, const QByteArray & data) |
virtual void | sendData(const QList<QUuid> & clients, const QByteArray & data) |
virtual void | terminateClientConnection(const QUuid & clientId) |
virtual bool | startServer() |
virtual bool | stopServer() |
bool | hardwareAvailable() |
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.
Constructs a BluetoothServer with the given parent.
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()[virtual]
void BluetoothServer::terminateClientConnection(const QUuid & clientId)