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

@@ -165,7 +165,7 @@ int main(int argc, char** argv)
/* publish with short name */
topic.type = MQTTSN_TOPIC_TYPE_SHORT;
memcpy(topic.data.name, "tt", 2);
memcpy(topic.data.short_name, "tt", 2);
len = MQTTSNSerialize_publish(buf, buflen - len, dup, qos, retained, packetid,
topic, payload, payloadlen);
rc = sendPacketBuffer(mysock, host, port, buf, len);