shamblett / coap

A Coap package for dart
Other
16 stars 13 forks source link

refactor: clean up message decoding and encoding #127

Closed JKRhb closed 1 year ago

JKRhb commented 2 years ago

This PR makes a number of refactorings, getting rid of obsolete code for encoding and decoding, and simplifying the serialization/deserialization process. The simplification should pave the way for further cleanup and easier addition of new CoAP features, like the extended token length RFC and the decoding/encoding of new message types like the signaling ones for CoAP over TCP.

JKRhb commented 2 years ago

In contrast to #122, this PR could be merged right away. Besides the tests I also ran all examples, ensuring that they still work.