mirror of
https://github.com/espressif/openthread.git
synced 2026-08-10 12:47:47 +00:00
[cli] update coaps readme (#9849)
This commit is contained in:
@@ -236,11 +236,16 @@ Sets the content sent by the test resource.
|
||||
Done
|
||||
```
|
||||
|
||||
### start
|
||||
### start \[check-peer-cert\|max-conn-attempts\]
|
||||
|
||||
Starts the application coaps service.
|
||||
|
||||
- checkPeerCert: Peer Certificate Check can be disabled by typing false.
|
||||
The `check-peer-cert` parameter determines if the peer-certificate check is enabled (default) or disabled. The `max-conn-attempts` parameter sets the maximum number of allowed attempts, successful or failed, to connect to the CoAP Secure server. The default value of this parameter is 0, which means that there is no limit to the number of attempts. The `check-peer-cert` and `max-conn-attempts` parameters work together in the following combinations, even though you can only specify one argument:
|
||||
|
||||
- No argument specified: Defaults are used.
|
||||
- Setting `check-peer-cert` to `true`: Has the same effect as as omitting the argument, which is that the `check-peer-cert` value is `true`, and the `max-conn-attempts` value is 0.
|
||||
- Setting `check-peer-cert` to `false`: `check-peer-cert` value is `false`, and the `max-conn-attempts` value is `0`.
|
||||
- Specifying a number: `check-peer-cert` is `true`, and the `max-conn-attempts` value is the number specified in the argument.
|
||||
|
||||
```bash
|
||||
> coaps start
|
||||
|
||||
Reference in New Issue
Block a user