Components/Hosted/include/Hosted/Client.h
Go to the documentation of this file.
38 Client(Stream& stream, char methodEndsWith = ':') : stream(stream), methodEndsWith(methodEndsWith)
Definition: Components/Hosted/include/Hosted/Client.h:34
Client(Stream &stream, char methodEndsWith=':')
Definition: Components/Hosted/include/Hosted/Client.h:38
HashMap< String, uint8_t > RemoteCommands
Definition: Components/Hosted/include/Hosted/Client.h:36
bool getRemoteCommands()
Gets list of remote command names and their ids.
Definition: Components/Hosted/include/Hosted/Client.h:117
bool send(const String &functionName, Args... args)
Method to send commands to the remote server.
Definition: Components/Hosted/include/Hosted/Client.h:58
int getFunctionId(String name)
Fetches a list of commands supported on the RPC server and gives back the id of the desired command.
Definition: Components/Hosted/include/Hosted/Client.h:94
R wait()
This method will block the execution until a message is detected.
Definition: Components/Hosted/include/Hosted/Client.h:75
virtual int available()=0
virtual void flush()=0
virtual size_t readBytes(char *buffer, size_t length)
Read chars from stream into buffer.
Definition: Components/Hosted/include/Hosted/Client.h:30
constexpr int COMMAND_NOT_FOUND
Definition: Components/Hosted/include/Hosted/Client.h:31
String convertFQN(const String &name)