Skip to content

Commit

Permalink
[cli] fix childsupervision commands documentation (#9201)
Browse files Browse the repository at this point in the history
Previous documentation could be wrongly interpreted as that the
supervision interval should be set on the parent (FTD).
  • Loading branch information
edmont committed Jul 5, 2023
1 parent f7b189c commit 37fb770
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions include/openthread/child_supervision.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,18 @@ extern "C" {
* @addtogroup api-child-supervision
*
* @brief
* This module includes functions for child supervision feature.
* This module includes functions for Child Supervision feature.
*
* @{
*
*/

/**
* Gets the child supervision interval (in seconds) on a child.
* Gets the Child Supervision interval (in seconds) on a child.
*
* Child supervision feature provides a mechanism for a sleepy child to ask its parent to ensure to send a message to
* it within the supervision interval. If there is no transmission to the child within the supervision interval,
* parent sends a supervision message (a data message with empty payload) to the child.
* Child Supervision feature provides a mechanism for parent to ensure that a message is sent to each sleepy child
* within the supervision interval. If there is no transmission to the child within the supervision interval, OpenThread
* enqueues and sends a Child Supervision Message to the child.
*
* @param[in] aInstance A pointer to an OpenThread instance.
*
Expand Down Expand Up @@ -88,7 +88,7 @@ void otChildSupervisionSetInterval(otInstance *aInstance, uint16_t aInterval);
uint16_t otChildSupervisionGetCheckTimeout(otInstance *aInstance);

/**
* Sets the supervision check timeout interval (in seconds).
* Sets the supervision check timeout interval (in seconds) on the child.
*
* @param[in] aInstance A pointer to an OpenThread instance.
* @param[in] aTimeout The check timeout (in seconds). Zero to disable supervision check on the child.
Expand Down
2 changes: 1 addition & 1 deletion include/openthread/instance.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ extern "C" {
* @note This number versions both OpenThread platform and user APIs.
*
*/
#define OPENTHREAD_API_VERSION (339)
#define OPENTHREAD_API_VERSION (340)

/**
* @addtogroup api-instance
Expand Down
10 changes: 5 additions & 5 deletions src/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -707,9 +707,9 @@ Done
### childsupervision interval
Get the Child Supervision Interval value.
Get the Child Supervision interval value on the child.
Child supervision feature provides a mechanism for parent to ensure that a message is sent to each sleepy child within the supervision interval. If there is no transmission to the child within the supervision interval, OpenThread enqueues and sends a supervision message (a data message with empty payload) to the child. This command can only be used with FTD devices.
Child Supervision feature provides a mechanism for parent to ensure that a message is sent to each sleepy child within the supervision interval. If there is no transmission to the child within the supervision interval, OpenThread enqueues and sends a Child Supervision Message to the child.
```bash
> childsupervision interval
Expand All @@ -719,7 +719,7 @@ Done
### childsupervision interval \<interval\>
Set the Child Supervision Interval value. This command can only be used with FTD devices.
Set the Child Supervision interval value on the child.
```bash
> childsupervision interval 30
Expand All @@ -728,7 +728,7 @@ Done
### childsupervision checktimeout
Get the Child Supervision Check Timeout value.
Get the Child Supervision Check Timeout value on the child.
If the device is a sleepy child and it does not hear from its parent within the specified check timeout, it initiates the re-attach process (MLE Child Update Request/Response exchange with its parent).
Expand All @@ -740,7 +740,7 @@ Done
### childsupervision checktimeout \<timeout\>
Set the Child Supervision Check Timeout value.
Set the Child Supervision Check Timeout value on the child.
```bash
> childsupervision checktimeout 30
Expand Down

0 comments on commit 37fb770

Please sign in to comment.