Skip to content
Snippets Groups Projects

fixed wildcard-topic for client

2 files
+ 7
6
Compare changes
  • Side-by-side
  • Inline

Files

+ 2
1
@@ -299,7 +299,8 @@ bool DidacticPSNetClient::handleData(){
payloadLength = extractData(topicLength+3, MAX_LEN_PAYLOAD, _bufferPayload, MSG_DELIMITER);
if( currentTopicNr >= 0){
savePayload( _bufferPayload, currentTopicNr);
callback(_topic[currentTopicNr], topicLength, _payload[currentTopicNr], payloadLength);
//callback(_topic[currentTopicNr], topicLength, _payload[currentTopicNr], payloadLength);
callback(_bufferTopic, topicLength, _bufferPayload, payloadLength);
}
}
return true;
Loading