Improve BLE documentation#753
Improve BLE documentation#753JF002 merged 3 commits intoInfiniTimeOrg:developfrom Elara6331:improve-ble-docs
Conversation
|
Thanks! That looks good to me! What do you think? Should we keep all the info in 1 page or create smaller pages about each service? |
|
I'm getting the feeling more and more than these paragraphs should just be JavaDoc-style inside the source code. This would reduce documentation maintenance burden and keeps relevant things tightly tied together. |
It might be better to put them in separate files, but I think all the files should all be in a |
The issue with that is it causes the same problem I had. I might not know precisely what I am looking for, in which case I would have to go through every file that looks like it might be related until I find it. |
|
I mean services are all very self contained and there's a few files to look at if you're interested in a single one. There's also search. I don't think yours is a more common problem than documentation getting outdated when it's kept separate. |
That is a good point, but in the absence of something like godoc, it is very inconvenient to look for docs in the source code. I think some parts of this can be put in the source code, but some, like the DFU section, are too long to place the entire thing into the code. |
|
I'm with avamander here, a large amount of this should be in the code and generated with some documentation generator that we can link to the planned #748 |
|
I suggest we move the discussion about how/where the developer documentation should be in #748. In the meantime, I'll merge this PR as this project is missing a lot of documentation, and I wouldn't want this one to be forgotten. Thanks again! |
I have noticed, during my development of
itdandinfinitime, that the BLE documentation for InfiniTime is lacking. I had to spend over 2 hours scouring through Nordic documentation and InfiniTime source code just to find a couple UUIDs and a message format table. I decided to make some documentation. I posted it in my repo: docs.md. I wanted more people to be able to see it, so I merged it with the existing BLE docs and fixed some spelling and grammar mistakes.