Skip to content
Snippets Groups Projects
Verified Commit 8050e624 authored by Anian Bühler's avatar Anian Bühler
Browse files

added client.begin() with callback

parent 79b16e15
No related branches found
No related tags found
No related merge requests found
...@@ -184,6 +184,11 @@ void DidacticPSNetClient::begin(Stream &_port) // TODO: check if CLientMode is n ...@@ -184,6 +184,11 @@ void DidacticPSNetClient::begin(Stream &_port) // TODO: check if CLientMode is n
_clientMode = CLIENT_MODE_BASIC; _clientMode = CLIENT_MODE_BASIC;
} }
void DidacticPSNetClient::begin(Stream &_port, PSNET_CALLBACK_SIGNATURE)
{
DidacticPSNet::begin(_port, callback);
}
bool DidacticPSNetClient::available() bool DidacticPSNetClient::available()
{ {
return _newMessageAvailable; return _newMessageAvailable;
......
...@@ -193,6 +193,7 @@ public: ...@@ -193,6 +193,7 @@ public:
~DidacticPSNetClient(); ~DidacticPSNetClient();
void begin(Stream &_port); // new void begin(Stream &_port); // new
void begin(Stream &_port, PSNET_CALLBACK_SIGNATURE);
bool available(); // new bool available(); // new
int readLatestTopicNr(); // new int readLatestTopicNr(); // new
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment