Skip to content
Snippets Groups Projects
Commit 56cf6e6e authored by Anian Bühler's avatar Anian Bühler
Browse files

Merge branch 'dev' into 'master'

fixed wildcard-topic for client

See merge request !7
parents fbf5b376 740c1230
No related branches found
No related tags found
1 merge request!7fixed wildcard-topic for client
...@@ -299,7 +299,8 @@ bool DidacticPSNetClient::handleData(){ ...@@ -299,7 +299,8 @@ bool DidacticPSNetClient::handleData(){
payloadLength = extractData(topicLength+3, MAX_LEN_PAYLOAD, _bufferPayload, MSG_DELIMITER); payloadLength = extractData(topicLength+3, MAX_LEN_PAYLOAD, _bufferPayload, MSG_DELIMITER);
if( currentTopicNr >= 0){ if( currentTopicNr >= 0){
savePayload( _bufferPayload, currentTopicNr); savePayload( _bufferPayload, currentTopicNr);
callback(_topic[currentTopicNr], topicLength, _payload[currentTopicNr], payloadLength); //callback(_topic[currentTopicNr], topicLength, _payload[currentTopicNr], payloadLength);
callback(_bufferTopic, topicLength, _bufferPayload, payloadLength);
} }
} }
return true; return true;
... ...
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#define INTERVAL_CLIENT 500L #define INTERVAL_CLIENT 500L
#define INTERVAL_BROKER 0L #define INTERVAL_BROKER 0L
#define MAX_NR_TOPICS_CLIENT 20 #define MAX_NR_TOPICS_CLIENT 10
#define MAX_NR_TOPICS_BROKER 20 #define MAX_NR_TOPICS_BROKER 20
#define MAX_LEN_TOPICS 10 #define MAX_LEN_TOPICS 10
#define MAX_LEN_PAYLOAD 20 #define MAX_LEN_PAYLOAD 20
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment