1248 / microcoap

A small CoAP implementation for microcontrollers
MIT License
334 stars 122 forks source link

add comments to more complex structs #13

Closed Lotterleben closed 9 years ago

Lotterleben commented 9 years ago

Hi all, I’m in the process of extending microcoap so that it can send requests on its own. While doing so, I’ve started to document the structs I’ve used for this. Obviously, I haven’t gotten around to documenting everything yet, but I thought I'd share what I have so far. In case you like it, I’d like to tackle the rest, too. :)

Lotterleben commented 9 years ago

Aw shoot, I just noticed that the type modifications I did on the fly slipped into the PR as well. if you want to I can split that up into two PRs.

tobyjaffey commented 9 years ago

Yes, please keep the code compilable.

Lotterleben commented 9 years ago

It still compiles. I just adjusted the types of t and code in coap_header_t to make it more obvious which values exactly should be set there.