#include <BaseRemoteComponents.h>
Public Member Functions | |
TcMenuRemoteServer (const ConnectorLocalInfo &appInfo) | |
void | clearRemotes () |
void | exec () override |
uint8_t | addConnection (BaseRemoteServerConnection *toAdd) |
uint8_t | remoteCount () const |
TagValueRemoteConnector * | getRemoteConnector (int num) |
TagValueTransport * | getTransport (int num) |
BaseRemoteServerConnection * | getRemoteServerConnection (int num) |
void | setHeartbeatIntervalAll (uint16_t milli) |
This is the component that allows us to manage as many connections as needed using a single instance, it holds on to instances of RemoteServerConnection and services them all, it also provides the getter functions for acquiring the transport or connector for a given item.
|
inlineexplicit |
Creates an instance of the remote server component that has no connections but is properly configured ready for connections to be added. You must provide the application information. The server is started when the first remote is added.
appInfo | the application information - uuid and name basically. |
|
inline |
Remove all current remotes
uint8_t tcremote::TcMenuRemoteServer::addConnection | ( | tcremote::BaseRemoteServerConnection * | toAdd | ) |
Adds a connection to the managed connections, this class will ensure that it is properly initialised, any authenticator on menuMgr added to it, and will call it's tick method frequently.
toAdd | the connection to add |
|
inline |
|
inline |
Gets the TagValueRemoteConnector
at the given remoteNo, or nullptr if not available.
num | the remote number |
|
inline |
Gets the TagValueTransport
at the given remoteNo, or nullptr if not available.
num | the remote number |
|
inline |
Gets the underlying remote connection for external processing, this will be device specific and you should check the type using getRemoteServerType
before doing anything with the connection.
num | the remote number |