Completed PUBLISH, PINGREQ and DISCONNECT. See full log.
Publish still has a small bug, but it's unclear if the bug is in my implementation, or the way Wireshark decodes the MQTT packets. It seems to miscalculate the length of the data itself; it's not subtracting the length of the topic name to get the length of the message, or something along those lines. Further testing will be needed. PINGREQ and DISCONNECT are almost identical -- the packets simply contain the command byte and a 0 for the remaining length. Both of these have been tested and work perfectly. Next steps: Implement subscribe and unsubscribe Implement events/tasks on receive Remove testing code, or put in separate branch Change makefile to create .a (library version that can be linked)
This commit is contained in:
parent
68755929e6
commit
247b772e3e
2 changed files with 126 additions and 28 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -4,6 +4,6 @@
|
|||
*.pdf
|
||||
*.map
|
||||
mqtt
|
||||
trace*
|
||||
\#*\#
|
||||
.\#*
|
||||
*.pcap
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue