-
Notifications
You must be signed in to change notification settings - Fork 178
Wi-SUN api documentation changes #981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
rebase 28.2
1bb21f4
to
703a490
Compare
|
||
The application can use the `LoWPANNDInterface` or `ThreadInterface` object for connecting to the mesh network. When successfully connected, the application can use the Mbed [C++ socket APIs](network-socket.html) to create a socket to start communication with a remote peer. | ||
The application can use the `LoWPANNDInterface`, WisunInterface` or `ThreadInterface` object for connecting to the mesh network. When successfully connected, the application can use the Mbed [C++ socket APIs](network-socket.html) to create a socket to start communication with a remote peer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WisunInterface missing the first `
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
corrected
@@ -276,3 +278,69 @@ Name: mbed-mesh-api.6lowpan-nd-security-mode | |||
Macro name: MBED_CONF_MBED_MESH_API_6LOWPAN_ND_SECURITY_MODE | |||
Value: NONE (set by library:mbed-mesh-api) | |||
``` | |||
|
|||
#### Wi-SUN related configuration parameters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Configuration should be moved to their own page.
But I don't find the "Configuration" page anymore from os.mbed.com/docs.. it has been very well hidden.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But this is the place, were the thread and 6lowpan configurations are
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it deserves a separate PR.
703a490
to
0ef4b97
Compare
@mikter Please review, or delegate someone from your team. |
Tagging @kegilbert to make sure this works with his config script |
Note to self: No code dependency because code already merged: ARMmbed/mbed-os#9838 |
There's a few sections as is that will pose issues with the configuration parameter auto-update script. The tool works by collecting all markdown code blocks and attempting to grab the prefix from the block. That prefix is then used to collect the output of The downsides to this script are mainly:
would be a problem since the
The workaround for that was to combine all of the separated sections into one segment, loosing some depth and clarity in our ability to highlight or group together sections of configuration parameters, but guaranteeing an always up to date list of parameters. |
@KariHaapalehto Can you please make the requested changes, so our config update script works with this doc? |
@SeppoTakalo , could you please comment about [2]. |
I'd like to keep all of our pages uniform, up to date and reflective of the code. We do have pages with separations (such as this one), but they're still grouped by code prefix. In this example, we've put the ones that start with "rtos" in one group and the ones that start with "events" in another. Because the mesh parameters all start with the same prefix, it makes sense for them to belong together. It's painful to remember to manually change one page when we run a script on the others. Also, we eventually hope to put the script into CI, which would make manual changes difficult. |
@artokin could you check these. Also there was changes in the Wi-SUN/Thread documentations and I think here is a link to those. are these links still functional? |
I object against combining the values into one list. We should not choose between readability and maintainability. |
I just pushed update to this pr. I did run the tool and config blocks are updated from the tool output. Nanostack configuration is now splitted to separate blocks based on prefix. Mbed-mesh-api is still splitted to logical blocks, since combining them to one big block would affect to readability. |
docs/reference/configuration/mesh.md
Outdated
|
||
For understanding the technologies and APIs, please refer to following sections before this one: | ||
|
||
- [Network connectivity in Mbed OS](../reference/networking.html) technology page. | ||
- [6LoWPAN Mesh technology](../reference/mesh-tech.html) page. | ||
- [6LoWPAN Mesh class reference](../apis/mesh-api.html) user API. | ||
- [Mesh technology](../reference/mesh-tech.html) page. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been changed, now 6LoWPAN_ND, Wi-SUN and Thread are having separate page
@@ -53,11 +53,12 @@ Option name | Features supported | Estimated binary size of Nanostack | |||
|
|||
If you want to optimize the flash usage, you need to configure Nanostack. The configuration to choose depends mostly on the preferred use case. | |||
|
|||
See the [6LoWPAN technology overview](mesh-tech.html) for the definition of star and mesh networks. These same principles apply also to the Thread protocol. | |||
See the [mesh technology overview](mesh-tech.html) for the definition of star and mesh networks. These same principles apply also to the Wi-SUN and Thread protocols. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mesh-tech now contains mainly 6LoWPAN_ND related information
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
star and mesh network definitions are at mesh-tech page, so no need to update this, but I'll update rest of the links
@kegilbert has graciously agreed to update his script to make this page more readable. Once he does, please resolve any merge conflicts. |
PR is up, pending review. Will require a minor modification. On all
Such as: Generic Mbed mesh API configuration valuesGeneric configuration allows you to fine tune Nanostack's heap usage. '''heap Name: mbed-mesh-api.heap-size I can make the changes as well once the merge conflict is resolved if that'd be easier. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from my end, thanks!
Spell out number less than 10.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR 👍
No description provided.