|
trikRuntime
|
TrikTelemetry server provides an interface for getting information about ports configuration and sensors data of a brick. More...
#include <trikTelemetry.h>


Public Member Functions | |
| TrikTelemetry (trikControl::BrickInterface &brick) | |
| Constructor. More... | |
Public Member Functions inherited from trikNetwork::TrikServer | |
| TrikServer (const std::function< Connection *()> &connectionFactory) | |
| Constructor. More... | |
| ~TrikServer () override | |
| int | activeConnections () const |
| Returns number of connections currently opened. More... | |
| Q_INVOKABLE void | startServer (quint16 port) |
| Starts listening given port on all network interfaces. More... | |
Additional Inherited Members | |
Public Slots inherited from trikNetwork::TrikServer | |
| void | sendMessage (const QString &message) |
| Broadcasts message across all opened connections. More... | |
Signals inherited from trikNetwork::TrikServer | |
| void | connected () |
| Emitted when we get the first connection established. More... | |
| void | disconnected () |
| Emitted when the last connection closes. More... | |
Protected Member Functions inherited from trikNetwork::TrikServer | |
| void | incomingConnection (qintptr socketDescriptor) override |
| void | startConnection (Connection *connectionWorker) |
| Launches given connection in a separate thread. Takes ownership over connectionWorker object. More... | |
| Connection * | connection (const QHostAddress &ip, int port) const |
| Searches connection to given IP and port in a list of all open connections. More... | |
| Connection * | connection (const QHostAddress &ip) const |
| Searches connection to given IP and any port in a list of all open connections. More... | |
TrikTelemetry server provides an interface for getting information about ports configuration and sensors data of a brick.
TrikTelemetry class creates for each client a new Connection which runs in a separate thread and serves clients' requests for ports and sensors data.
|
explicit |
Constructor.
| brick | - a Brick used to respond to clients |