Latest updates - subscribe and other things

This commit is contained in:
Ian Craggs
2014-05-15 23:04:25 +01:00
parent 649fac4749
commit 88f7c815e4
11 changed files with 391 additions and 26 deletions

View File

@@ -139,8 +139,8 @@ int main(int argc, char** argv)
rc = sendPacketBuffer(mysock, host, port, buf, len);
topic.type = MQTTSN_TOPIC_TYPE_NORMAL;
topic.data.qos3.longname = topicname;
topic.data.qos3.longlen = strlen(topicname);
topic.data.long_.name = topicname;
topic.data.long_.len = strlen(topicname);
len = MQTTSNSerialize_publish(buf, buflen - len, dup, qos, retained, packetid,
topic, payload, payloadlen);
rc = sendPacketBuffer(mysock, host, port, buf, len);