dfd0a9fddf
Bugfix: Do not use packet_id zero
...
Re #12
2018-07-30 22:26:32 +02:00
afc0d3aa27
Bugfix: Do not allow DUP flag for QoS 0
...
Re #11
2018-07-30 22:20:10 +02:00
254194dfc6
Add client id sanity check
...
Re #10
2018-07-30 22:13:37 +02:00
9b89eba536
Set last will in publish test to increase coverage
2018-07-30 22:06:47 +02:00
0a56f00222
Better error logging
2018-07-30 22:06:32 +02:00
cfd8934779
Bugfix: Implement last will correctly, fix some QoS handling and allow for clean session
...
Re #4
2018-07-30 22:04:54 +02:00
82ea7853e8
BUGFIX: Handling incomplete buffers was totally wrong
2018-07-30 22:03:33 +02:00
7bb1aee889
Grammatical error
2018-07-30 11:53:41 +02:00
1d8ee1c128
Create LICENSE
2018-07-30 01:54:49 +02:00
c4c8a86eec
Missing information for embedded targets
2018-07-30 03:50:33 +02:00
1089883551
Fix readme
2018-07-30 03:46:39 +02:00
4f992d0a26
Add readme and fix documentation
2018-07-30 03:45:32 +02:00
883a3cc476
Increase coverage by subscribing to more than one topic and unsubscribing afterwards.
2018-07-30 03:14:24 +02:00
13056f9ce8
Remove forced inline from some functions as it messes with coverage.
...
We probably will have to define some macros that add `static inline` to
some functions when not building in debug mode.
2018-07-30 03:13:21 +02:00
323d8916e0
Automatically run tests again
2018-07-30 02:59:12 +02:00
022b5a87ec
Make connect tests work (needs a local MQTT broker)
2018-07-30 02:57:58 +02:00
5d746b6787
Cleanup whitespace
2018-07-30 02:57:40 +02:00
df5faa77c9
Bugfix: Buffer position overflow because of terminating NULL byte the library adds to payload
2018-07-30 02:56:46 +02:00
1d134a23c9
Add more callbacks to the API so we can subscribe after successful connection for example
2018-07-30 02:56:05 +02:00
5a17278cc9
QoS handling and packet expectations in protocol implementation
2018-07-30 02:55:23 +02:00
31cf6d965d
Bugfix: Some packets need fixed flags in header, missed that in the spec
2018-07-30 02:54:37 +02:00
05b939dfea
Implement statemachine, QoS untested for now
2018-07-30 02:53:18 +02:00
4916148749
Bugfix: No-Debug version of debug.h had an error
2018-07-30 02:51:49 +02:00
db273fc8a4
Start implementation of protocol statemachine
2018-07-29 03:43:01 +02:00
8938d6ae18
Extend platform for hostname resolution functionality
2018-07-29 03:42:35 +02:00
091e6bf4b9
General cleanup
2018-07-29 03:41:55 +02:00
2a169cc58e
Finish packet decoder
2018-07-28 22:35:40 +02:00
fe3a4d0b58
Hide internal API again and modify tests so coverage will be higher
2018-07-28 22:35:15 +02:00
6443643c1d
Add DEBUG_LOG macro
2018-07-28 22:34:49 +02:00
053434f2bd
Add decoder tests
2018-07-28 20:42:32 +02:00
4d7690366d
Start implementing decoders
2018-07-28 20:42:18 +02:00
616a8987cb
Bugfix: While testing decoding some bugs appeared
2018-07-28 20:41:48 +02:00
a16d50b717
Modify existing tests to new test.h
2018-07-28 20:40:59 +02:00
bf8a8ad1c2
export some more functions to allow testing
2018-07-28 20:40:38 +02:00
83535ad4a9
Build fix: missing include in debug.h
2018-07-28 20:39:52 +02:00
3bd6a7d3e7
Bugfix: when initializing buffer from data reset position afterwards
2018-07-28 20:39:26 +02:00
fb938637cc
Compile in DEBUG mode for now
...
Note to self: Modify makefile to output two libs, one debug, one release
2018-07-28 20:38:41 +02:00
8548dcaeb2
Modify test harnish:
...
- Successful TESTASSERTs now continue on
- Failed TESTASSERTs stop the test function with an error message
- Test binary outputs summary at end
- Tests have to be finished with TEST_OK()
2018-07-28 20:37:17 +02:00
dbcc491a5d
Bugfix: Unsubscribe package was 2 bytes short
2018-07-28 17:59:10 +02:00
c82b157c15
Bugfix: Subscribe package was 2 bytes short
2018-07-28 17:58:45 +02:00
6590736a9d
Bugfix: Missing flags in publish message
2018-07-28 17:58:20 +02:00
7a03c95889
Bugfix: Segmentation fault when publishing without message
2018-07-28 17:57:54 +02:00
74a29da7df
Implement tests for all encoder functions
2018-07-28 17:57:19 +02:00
b7a41b932c
Extend test harnish to auto-hexdump on buffer differences
2018-07-28 16:09:34 +02:00
e072a11725
Extend hexdump function for tests
2018-07-28 16:09:08 +02:00
7e4afa462d
Cleanup
2018-07-28 02:51:38 +02:00
31ebc6fc35
Disable debugging functionality if DEBUG flag is not set
2018-07-28 02:40:48 +02:00
9c7b65b74c
VSCode settings updated to squelch linter
2018-07-28 02:38:07 +02:00
6ff7d2a841
Implement packet encoder, start writing tests
2018-07-28 02:30:41 +02:00
4a32facdb5
Initial commit
2018-07-27 02:25:06 +02:00